← Feed
@hugo@social.treehouse.systems
Post #2741394
2026-03-16 01:45 UTC
@arichtman@eigenmagic.net @uep@timeloop.cafe that sounds about right.
tbh, this sounds like the GUIs or distribution-specific (opnsense, openwrt) abstractions are confusing things.
Daniel has it above.
Each node has:
their own interface / listening address & private key configa list of peers
Where each peer is configured with:
an address to reach them on (Endpoint)their pubkeythe AllowedIPs that can be reached through that peer
That requirement is the same in both directions.
Router A has its own Interface / address / private key, and a peer for router B, which lists router B's endpoint address, pubkey, and the AllowedIPs to reach through router B.
Router has its own Interface / address / private key, and a peer for router A, which lists router A's endpoint address, pubkey, and the AllowedIPs to reach through router A.
If you also add site C, you would add a peer and endpoint + pubkey + allowedips entry for site C to both A and B's config, and then in site C's configuration add its interface / address / private key, and peer configs for routers A and B with their endpoint addresses, pubkeys, and the AllowedIPs to reach through each respective peer.
Client-server abstractions here add more confusion than helpful, imho, for this type of setup. That can possibly be a helpful lens for a road warrior setup that's a more traditional client-server view, but for interconnecting sites through routers running wg in a site-to-site setup it just confuses things, imho.
Replies (1)
-
@hugo@social.treehouse.systems @arichtman@eigenmagic.net agreed with two minor details that may combine here.
Endpoint is optional. It can be discovered and change based on received traffic. So only one party needs an endpoint configured for the other peer to get things started.
If you're a remote access endpoint for lots of roaming users, you won't have configured endpoints for them, only discovered ones once they're connected. Also, you may be asked to provide the config for those to just "install", which means priv key as well.
I suspect this is the server/client distinction being made. It's a valid and common use case for commodity devices. But I've seen gui configurations that encode more than that (ubiquiti was terrible at first) like implied firewall rules and default routes. So I'm wary of the lack of clarity.
Open ##2741395