routeros: hairpin NAT (ER-X parity) #121

Merged
ginjiruu merged 1 commit from routeros-hairpin into master 2026-11-17 01:10:02 +00:00
Owner

Refs #73. User decision 2026-11-16: hairpin is required.

  • site public_names = [animeteamspeak.moe] (cloudflare-ddns, DNS only; resolves to the home address 69.157.108.188 today). The routers resolve it into address list PUBLIC-IP.
  • dstnat hairpin rules: not from WAN, dst PUBLIC-IP, same ports and targets as the WAN forwards.
  • srcnat masquerade: src LAN-NETS (all routed site networks) to PUBLISHED (the forward targets), so mini answers via the router.

fmt, validate (3 roots), guard pass. Not CHR-proven yet: the #70 gate covers it on its next render:all.

Refs #73. User decision 2026-11-16: hairpin is required. - site public_names = [animeteamspeak.moe] (cloudflare-ddns, DNS only; resolves to the home address 69.157.108.188 today). The routers resolve it into address list PUBLIC-IP. - dstnat hairpin rules: not from WAN, dst PUBLIC-IP, same ports and targets as the WAN forwards. - srcnat masquerade: src LAN-NETS (all routed site networks) to PUBLISHED (the forward targets), so mini answers via the router. fmt, validate (3 roots), guard pass. Not CHR-proven yet: the #70 gate covers it on its next render:all.
The ER-X had hairpin-nat on every LAN. LAN traffic to the public address
(PUBLIC-IP, resolved from the site public names) is dst-nat like WAN
traffic, and LAN clients of a published target are masqueraded so mini
answers through the router instead of directly (the router would drop the
half-seen connection as invalid).
ginjiruu merged commit 2f36fb70f4 into master 2026-11-17 01:10:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac!121
No description provided.