Multicast over a wireguard link?

Toke Høiland-Jørgensen toke at
Tue Dec 20 19:40:06 CET 2016

"Jason A. Donenfeld" <Jason at> writes:

> On Tue, Dec 20, 2016 at 7:19 PM, Toke Høiland-Jørgensen <toke at> wrote:
>> Can wireguard handle routed traffic to an endpoint. I.e. if endpoint A
>> has address and endpoint B has a route 'ip route add
>> via 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,


More information about the WireGuard mailing list