OPNsense Forum

English Forums => General Discussion => Topic started by: tonnoplast on February 24, 2023, 03:00:17 PM

Title: Multi WAN and default source address for traffic originating from the router
Post by: tonnoplast on February 24, 2023, 03:00:17 PM
Hi, I have a multi-wan setup (a "normal" WAN interface and a VPN), and two LAN interfaces configured with two separate subnets (say 192.168.1.1/24 and .2/24), one reaching the internet via the WAN interface, the other reaching the internet via VPN, using policy based routing. I can test this works by doing, for example:

curl --interface <iface> ifconfig.co

My question now is: how does OPNsense chose which source address to use by default for traffic originating from the router? This matters as the gateway will be different, depending on the source ip address.

Thanks!