routeros: IPv6 over BGP for c1 (address families + v6 next hop) #145

Closed
opened 2026-11-17 21:08:21 +00:00 by ginjiruu · 2 comments
Owner

c1 Cilium announces v6 PodCIDR + LB (fdd5:c8ef:2fa0💯:/64) to the RB5009 pair, but routeros_routing_bgp_connection sets no address_families (RouterOS default: ip only) and the session is v4, so v6 NLRI would carry a v4-mapped next hop. Options: afi=ip,ipv6 + nexthop-choice / a parallel v6 session on P:20::2/3. Found in the c1 window review (2026-11-17); window accepts v4-only LB.

c1 Cilium announces v6 PodCIDR + LB (fdd5:c8ef:2fa0:100::/64) to the RB5009 pair, but routeros_routing_bgp_connection sets no address_families (RouterOS default: ip only) and the session is v4, so v6 NLRI would carry a v4-mapped next hop. Options: afi=ip,ipv6 + nexthop-choice / a parallel v6 session on P:20::2/3. Found in the c1 window review (2026-11-17); window accepts v4-only LB.
Author
Owner

Done. IPv6 peering is live on both routers and pod-to-world v6 works end to end.

What shipped (merged to master):

  • PR #152 — per-peer parallel v6 sessions (<name>-v6, router side fdd5:c8ef:2fa0:20::2/::3) plus the reject-all output chain bgp-out from #125's scope, enforced on every v4 and v6 connection.
  • PR #153 — RA carries routes only on VLAN 20 (autonomous = false nd prefix, SLAAC zones untouched).

Verification:

  • Lab CHR pair (7.25.1) first: reject chain proven (with it, default-originate=always advertises nothing; removing the chain makes 0.0.0.0/0 appear), 4 sessions established, plan -detailed-exitcode 0. RA change proven there too: a client's SLAAC address stops regrowing after delete while both RA default routes stay.
  • Prod, rb5009-a and -b: c1-think-0{1,2,3}-v6-1 all established, prefix-count 1 each, advertisements 0 (reject chain holding). v4 sessions untouched (mini-01 21 pfx, thinks 1 pfx each).
  • Cilium (think-01): both v6 peers established, ipv6/unicast advertised 1, received 0.
  • Routers learned the pod pools: fdd5:c8ef:2fa0:4{0,1,2}::/64 via fdd5:c8ef:2fa0:20::21/22/23.
  • Data plane: ping6 fdd5:c8ef:2fa0:401::505c (cert-manager pod on think-02) from the workstation: 0% loss, ~0.76 ms.

One surprise, which is why #153 exists: the sessions initially sat in Active. Cilium dials unbound, and the thinks' NICs had SLAAC + privacy-temp addresses, which the kernel prefers as source (RFC 6724) — the routers' per-peer input6 pins then correctly dropped the sessions. Fix is on the RA side (routes-only on the static-ULA net) plus a one-time deletion of the stale addresses; each think now has exactly one global v6 address on eno1 and nothing regrows.

Remaining from the original leak/hardening bundle, now re-scoped into #125: TCP MD5 (needs Cilium authSecretRef), input route filters, per-peer route caps.

Done. IPv6 peering is live on both routers and pod-to-world v6 works end to end. What shipped (merged to master): - PR #152 — per-peer parallel v6 sessions (`<name>-v6`, router side fdd5:c8ef:2fa0:20::2/::3) plus the reject-all output chain `bgp-out` from #125's scope, enforced on every v4 and v6 connection. - PR #153 — RA carries routes only on VLAN 20 (`autonomous = false` nd prefix, SLAAC zones untouched). Verification: - Lab CHR pair (7.25.1) first: reject chain proven (with it, `default-originate=always` advertises nothing; removing the chain makes 0.0.0.0/0 appear), 4 sessions established, `plan -detailed-exitcode` 0. RA change proven there too: a client's SLAAC address stops regrowing after delete while both RA default routes stay. - Prod, rb5009-a and -b: `c1-think-0{1,2,3}-v6-1` all established, prefix-count 1 each, advertisements 0 (reject chain holding). v4 sessions untouched (mini-01 21 pfx, thinks 1 pfx each). - Cilium (think-01): both v6 peers established, ipv6/unicast advertised 1, received 0. - Routers learned the pod pools: fdd5:c8ef:2fa0:4{0,1,2}::/64 via fdd5:c8ef:2fa0:20::21/22/23. - Data plane: `ping6 fdd5:c8ef:2fa0:401::505c` (cert-manager pod on think-02) from the workstation: 0% loss, ~0.76 ms. One surprise, which is why #153 exists: the sessions initially sat in Active. Cilium dials unbound, and the thinks' NICs had SLAAC + privacy-temp addresses, which the kernel prefers as source (RFC 6724) — the routers' per-peer input6 pins then correctly dropped the sessions. Fix is on the RA side (routes-only on the static-ULA net) plus a one-time deletion of the stale addresses; each think now has exactly one global v6 address on eno1 and nothing regrows. Remaining from the original leak/hardening bundle, now re-scoped into #125: TCP MD5 (needs Cilium authSecretRef), input route filters, per-peer route caps.
Author
Owner

IPv6 over BGP live on both routers, pod v6 reachable from the LAN. Output filter folded in per this thread.

IPv6 over BGP live on both routers, pod v6 reachable from the LAN. Output filter folded in per this thread.
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#145
No description provided.