"Jason A. Donenfeld" <ja...@zx2c4.com> writes: > On Tue, Dec 20, 2016 at 7:19 PM, Toke Høiland-Jørgensen <t...@toke.dk> wrote: >> Can wireguard handle routed traffic to an endpoint. I.e. if endpoint A >> has address 10.0.0.1/32 and endpoint B has a route 'ip route add >> 10.10.10.1/24 via 10.0.0.1 dev wg0', would the traffic go where it's >> supposed to? > > The `via` isn't relavent, since that only functions to determine which > device to send it out of. All the ordinary routing table will do is > direct it toward wg0. Once it hits wg0, then the allowed-ips entries > are consulted to see where to send it (the "cryptokey routing table"). > See sections 2 and 3 of [1].
Right, but that means that even if multicast is added, a routing protocol won't be terribly useful, since it can't tell wireguard which subnets lives behind which peers. What I would need is to be able to assign /32s (or IPv6 lladdrs) to the interface for each peer, and have the kernel routing table determine which subnets should go to each of those. My hope was that wireguard could then figure out where to send the packet from the /32s (which would be in the wireguard config, presumably). -Toke _______________________________________________ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard