Source IP selection or multi-home or multi-interface issue - solved with source-based route - was: Re: Wireguard source ip selection issue with multi interfaces
Janne Johansson
icepic.dz at gmail.com
Fri Oct 21 13:25:41 UTC 2022
> "How should wireguard know which IP is the correct source IP address?"
>
> I digged into the source code but couldn't find the part where the source-IP is selected for outgoing connections (like a simple ping).
> I am not a developer but would like to try to understand it. Could someone give me a pointer?
I think it is left to the OS and it's tcp stack to pick the ip (and
interface) based on the UDP destination ip and the current routing
table when sending udp packets.
--
May the most significant bit of your life be positive.
More information about the WireGuard
mailing list