Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
HowTo correctly setup Multi-WAN including specific custom routes?
« previous
next »
Print
Pages: [
1
]
Author
Topic: HowTo correctly setup Multi-WAN including specific custom routes? (Read 2022 times)
Himpich
Newbie
Posts: 2
Karma: 0
HowTo correctly setup Multi-WAN including specific custom routes?
«
on:
November 09, 2022, 12:58:14 pm »
Hello,
I have to upstream providers and want to use both of them with defined target roules including a failover. My idea was:
1) Setup both gateways (gw1, gw2, they are fritzboxes), same weight
2) Create a Wan Gateway group (gwg1) with gw1 as tier 1 and gw2 as tier 2
3) create a second wan gateway group (gwg2) with gw1 as tier2 and gw2 as tier 1
4) Per default route all traffic over gwg1
5) add a rule (System/Routes or as pf rules with a gateway defined in Firewall/Rules/LAN (also tried Firewall/Rules/WAN) (I want to route an external nextcloud target via the second upstream)
Problem:
ALL traffic is routed via gw1 which is the tier1 gateway in gwg1
NO traffic is routed via gw2 ever. Except when I turn of gw1
I disabled sticky connections, tried the pf rules, tried system routes. Gateway switching is enabled.
What might I be doing wrong? Is there a guide how to setup multi-wan including a manual route to route via the secondary gateway?
Thanks in Advance
«
Last Edit: November 09, 2022, 01:33:22 pm by Himpich
»
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: HowTo correctly setup Multi-WAN including specific custom routes?
«
Reply #1 on:
November 09, 2022, 01:55:06 pm »
With GW groups defined, you would like to go with policy based routing (FW rules defining the GW).
With "default allow" routed over GW1 you will need a second rule before "default allow" with GW2 defined.
Can you provide a screenshot of your ruleset? What you described should work as far as I can see...
Logged
i am not an expert... just trying to help...
Himpich
Newbie
Posts: 2
Karma: 0
Re: HowTo correctly setup Multi-WAN including specific custom routes?
«
Reply #2 on:
November 09, 2022, 02:06:39 pm »
First Attachment: The Gateway Groups
Second Attachment: The policy based routing rules (on the lan interface - tried the same on wan without any change)
Traffic is _always_ routed via WANGWGROUP, never REVERSE_WAN_GW_GROUP
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: HowTo correctly setup Multi-WAN including specific custom routes?
«
Reply #3 on:
November 09, 2022, 02:15:31 pm »
Looks good.
Sure this is v4 traffic going over the wrong GW?
Maybe it´s worth a try not to route over reverse_GW for the first time, but route directly to the other GW.
«
Last Edit: November 09, 2022, 02:18:29 pm by tiermutter
»
Logged
i am not an expert... just trying to help...
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: HowTo correctly setup Multi-WAN including specific custom routes?
«
Reply #4 on:
November 09, 2022, 02:17:59 pm »
What´s behind the alias "Nextcloud"? Is it configured properly?
Logged
i am not an expert... just trying to help...
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: HowTo correctly setup Multi-WAN including specific custom routes?
«
Reply #5 on:
November 09, 2022, 02:19:14 pm »
And is the rule really hit when it should?
Logged
i am not an expert... just trying to help...
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
HowTo correctly setup Multi-WAN including specific custom routes?