WireGuard itself can not select the source IP which sends the packets.Lets say unit 1 has 192.168.1.50, unit 2 has 192.168.1.51. 2 VIPs, 192.168.1.1 and 192.168.1.254.WireGuard will always reply with the highest IP, there is no binding to an IP as the connection is stateless. You have to report this feature request to WireGuard directly (did this couple of times).
As far as I'm aware, the Wireguard server will always respond to the IP from which the last packet originated, right?
Quote from: qdrop on September 04, 2020, 04:10:34 pmAs far as I'm aware, the Wireguard server will always respond to the IP from which the last packet originated, right?No. Just try it .. add some virutal IPs in different ranges and from an endpoint set the different IPs.It's stateless, the operating system will choose the highest one (depending of it's networking stack).
So I just tried said setup.I have two OPNsenses with their own different public IPs (without virtual ones - not necessary / one via Fiber, one via 4G.) and configured them in a HA-cluster (with just a virtual IP on the LAN side).