Re: 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

2022-10-21 Thread 曹煜
Hi, Actually, I've hacked the wireguard source code by myself months ago, and it's working as expected on openwrt with mwan3. See details and the last hack patch on my github issue: https://github.com/openwrt/packages/issues/9538 As I said on the issue, the problem is wireguard always reset the inc

Re: 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

2022-10-21 Thread Janne Johansson
> "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 > giv

Re: 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

2022-10-21 Thread Christoph Loesch
So I tried to come up with a simple setup to showcase the issue and then I realized: "How should wireguard know which IP is the correct source IP address?" In the simple setup wireguard even selected an IP from an interface which link is down which is kind of strange. After removing the IP from