Source IP for multihomed peer

Benda Xu heroxbd at
Fri Oct 15 08:25:11 UTC 2021

Hi Chriztoffer,

Chriztoffer Hansen <ch at> writes:

> In the prototyping patch you developed for WireGuard, did you consider
> prototyping being able to bind to an interface, instead of explicitly
> specifying an IP address? 

No we did not.  We wanted to keep the patch as small as possible.  

That said, we could manage it by an auxiliary script.

> An example case for being able to bind to an interface could be a
> multi-wan connected firewall/router with dynamic public IP addresses
> offered by the upstream provider no at least one
> connection. E.g. Primary fiber line, backup DSL line.

Yeah, that's a common use case.


More information about the WireGuard mailing list