Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Static route does not work when in Dual WAN configuration
« previous
next »
Print
Pages: [
1
]
Author
Topic: Static route does not work when in Dual WAN configuration (Read 403 times)
Ribatexano
Newbie
Posts: 3
Karma: 0
Static route does not work when in Dual WAN configuration
«
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:
I have a VPN server at a remote location and OPNSense is a client of that server
I created a gateway for that VPN interface and created a static route under: System: Routes: Configuration
If my default gateway (in firewall rules) is not the Dual WAN GW group, the routing works good, if it is, the static routing stops working
Can you help me with this situation?
Thank you everyone in advance
Logged
dseven
Full Member
Posts: 244
Karma: 26
Re: Static route does not work when in Dual WAN configuration
«
Reply #1 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.
Logged
Ribatexano
Newbie
Posts: 3
Karma: 0
Re: Static route does not work when in Dual WAN configuration
«
Reply #2 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
Logged
Patrick M. Hausen
Hero Member
Posts: 6700
Karma: 564
Re: Static route does not work when in Dual WAN configuration
«
Reply #3 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.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Ribatexano
Newbie
Posts: 3
Karma: 0
Re: Static route does not work when in Dual WAN configuration
«
Reply #4 on:
August 19, 2024, 08:50:48 pm »
Got it, thank you for the explanation
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Static route does not work when in Dual WAN configuration