Peering with a family site: export a shared LB pool over BGP/WireGuard #168
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#168
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Design for peering the caosh network with my brother's site, so services I choose are reachable from his network and nothing else is. Not scheduled; written down 2026-11-19 so it is ready when we talk.
Model: export by LB pool
A Service is exported when its LoadBalancer address comes from a shared pool, not merely because it is a LoadBalancer: internal apps use LB addresses too.
10.30.101.0/24plus a ULA/64fromfdd5:c8ef:2fa0::/48, selected by a Service label such aslbipam.animeteamspeak.moe/pool: shared. Labelling a Service puts its address in that pool; everything else stays in the existing pools.modules/router/firewall.tf, #79), allowed to the shared pool on listed ports only. This is the security boundary.dns.animeteamspeak.moe/publicand/internal) writes shared services into a peer-visible zone; his resolver conditionally forwards it to ourns1over the tunnel. Earlier mesh-naming notes reserveshare.intfor this.Alternative
NetBird (ADR-0008, "Our own sites") can carry the shared pool as a network route instead of BGP: simpler for him, less routing control here.
Open questions
share.intor a per-peer zone.Related: #79 (peer zones), #125 (BGP filters), ADR-0008.
DNS between the sites
Options, best first:
share.int.animeteamspeak.moe, is forwarded to ourns1(10.30.100.11) over the tunnel; everything else keeps using his ISP or public resolvers. RouterOS 7 does it with one statictype=FWDentry, and OpenWrt (dnsmasqserver=/zone/ip) does too. If the tunnel or this site is down, only our shared names stop resolving; his household internet is unaffected. The peering already needs a router on his side that speaks BGP over WireGuard, so the same box does this: nothing extra for him to run or learn.Either way, the reverse holds for his names: our recursor gets a forward zone for his zone to his resolver, and the peer firewall zone allows his resolver (and only it) to reach
ns1on 53.For a non-technical peer the practical answer is option 1 with us managing his router: he never touches DNS, and his internet does not depend on us.