Public IPv6 prefix: global addresses for public services #169

Open
opened 2026-11-20 02:42:56 +00:00 by ginjiruu · 1 comment
Owner

Design for publishing services on a public IPv6 prefix. Not scheduled; written down 2026-11-19. Today there is no WAN v6: Bell delegates no prefix (modules/router/ipv6.tf), and the site runs ULA only.

Where a prefix could come from

Source Upstream announcement Stability
ISP prefix delegation (Bell, if ever offered) none: the ISP routes the PD to the WAN can change; pinned addresses break unless the delegation is static
Tunnel broker static /48 (e.g. Hurricane Electric) none: routed over the tunnel static; works without Bell
Own ASN + provider-independent /48 eBGP to transit (a VPS or transit provider) static; most control, most work

Structure (the same for every source)

  • Public = has a global address. Carve a /64 from the prefix as the public LB pool. Services labelled public (the same opt-in as dns.animeteamspeak.moe/public) get a GUA from it; Cilium announces it to the routers; the routers route it, or announce the aggregate upstream with PI space. Internal services keep ULA only.
  • The firewall is the only boundary. No NAT on v6, so firewall6.tf gets a WAN chain: default-deny inbound, allow WAN to the public pool on chosen ports only.
  • v4 unchanged. Public services keep the v4 port forward to gateway/cilium-default; with v6 they also get their own address. external-dns then publishes AAAA beside the CNAME.

Open questions

  • Which source: tunnel broker now, or PI + ASN later.
  • MTU over a tunnel (the WAN is already PPPoE, MTU 1492).
  • Whether the routers' own v6 resolver and NTP move to v6 once it exists.

Related: #145 (v6 BGP with c1), lab/clusters#1708 (public DNS), ADR-0008.

Design for publishing services on a public IPv6 prefix. Not scheduled; written down 2026-11-19. Today there is no WAN v6: Bell delegates no prefix (`modules/router/ipv6.tf`), and the site runs ULA only. ## Where a prefix could come from | Source | Upstream announcement | Stability | |---|---|---| | ISP prefix delegation (Bell, if ever offered) | none: the ISP routes the PD to the WAN | can change; pinned addresses break unless the delegation is static | | Tunnel broker static /48 (e.g. Hurricane Electric) | none: routed over the tunnel | static; works without Bell | | Own ASN + provider-independent /48 | eBGP to transit (a VPS or transit provider) | static; most control, most work | ## Structure (the same for every source) - **Public = has a global address.** Carve a /64 from the prefix as the public LB pool. Services labelled public (the same opt-in as `dns.animeteamspeak.moe/public`) get a GUA from it; Cilium announces it to the routers; the routers route it, or announce the aggregate upstream with PI space. Internal services keep ULA only. - **The firewall is the only boundary.** No NAT on v6, so `firewall6.tf` gets a WAN chain: default-deny inbound, allow WAN to the public pool on chosen ports only. - **v4 unchanged.** Public services keep the v4 port forward to `gateway/cilium-default`; with v6 they also get their own address. external-dns then publishes AAAA beside the CNAME. ## Open questions - Which source: tunnel broker now, or PI + ASN later. - MTU over a tunnel (the WAN is already PPPoE, MTU 1492). - Whether the routers' own v6 resolver and NTP move to v6 once it exists. Related: #145 (v6 BGP with c1), lab/clusters#1708 (public DNS), ADR-0008.
Author
Owner

Signed up, got the following command

/interface 6to4 add comment="Hurricane Electric IPv6 Tunnel Broker" disabled=no local-address=70.26.10.82 mtu=1280 name=sit1 remote-address=216.66.38.58
/ipv6 route add comment="" disabled=no distance=1 dst-address=2000::/3 gateway=2001:470:1c:539::1 scope=30 target-scope=10
/ipv6 address add address=2001:470:1c:539::2/64 advertise=no disabled=no eui-64=no interface=sit1

Signed up, got the following command /interface 6to4 add comment="Hurricane Electric IPv6 Tunnel Broker" disabled=no local-address=70.26.10.82 mtu=1280 name=sit1 remote-address=216.66.38.58 /ipv6 route add comment="" disabled=no distance=1 dst-address=2000::/3 gateway=2001:470:1c:539::1 scope=30 target-scope=10 /ipv6 address add address=2001:470:1c:539::2/64 advertise=no disabled=no eui-64=no interface=sit1
Sign in to join this conversation.
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#169
No description provided.