OPNsense Forum

English Forums => General Discussion => Topic started by: driv3l on May 10, 2018, 09:53:58 pm

Title: Dual wans, dual gateway rules (with one being inverted)
Post by: driv3l on May 10, 2018, 09:53:58 pm
Note... I am running the latest version of OPNsense.

I currently have a dual WAN setup with WAN0 being the primary, and WAN1 being the secondary / failover.

I would like to segment the traffic in my network such that the default gateway rule is that WAN0 is the primary, and WAN1 is the secondary, but for a subset of hosts (setup via an ALIAS), I would like the to invert the gateway rules so that WAN1 is the primary, and WAN0 is the secondary for that group.

Can someone point me in the right direction for how I could achieve this? Note, I am an OPNsense / router newbie.

I did manage to get a LAN rule working which allowed my ALIAS group to use WAN1 instead of the default WAN0, but I am not sure how to take the next step and have the ALIAS group also have WAN0 as the failover in case WAN1 goes down.

Thanks!
Title: Re: Dual wans, dual gateway rules (with one being inverted)
Post by: mimugmail on May 11, 2018, 06:07:13 am
You need to setup gateway groups where WAN0 is tier 1 and WAN1 is tier 2. This is for the first users. Then a second group reversed which is for the second group of users. Put the rules with the alias (second group) in front of the other rule.