OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: Ribatexano on August 18, 2024, 02:22:36 PM

Title: Static route does not work when in Dual WAN configuration
Post by: Ribatexano on August 18, 2024, 02:22:36 PM
Hello everyone, I hope this finds you well.
This vacation period I took the plunge and migrated from pfSense to OPNSense and I'm trying to recreate the setup I had before but I'm struggling with something:


Can you help me with this situation?
Thank you everyone in advance
Title: Re: Static route does not work when in Dual WAN configuration
Post by: dseven on August 18, 2024, 03:41:04 PM
Instead of creating a static route, create a firewall rule for your LAN (or whatever the source of the connections is), specifying the destination (and source, if you want to), and select your (VPN) gateway there.
Title: Re: Static route does not work when in Dual WAN configuration
Post by: Ribatexano on August 18, 2024, 03:53:56 PM
Hello and thank you for your fast response. It worked as you said! Thank you again!

It seems that several options on OPNSense are not ready by default for Multi-Wan setups, am I correct?

Thank you
Title: Re: Static route does not work when in Dual WAN configuration
Post by: Patrick M. Hausen on August 18, 2024, 04:09:16 PM
Static routing works on destination address only. Multi WAN frequently needs policy routing also based on source network or address so that goes into the firewall policy.
Title: Re: Static route does not work when in Dual WAN configuration
Post by: Ribatexano on August 19, 2024, 08:50:48 PM
Got it, thank you for the explanation