OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: Thongtuk05 on August 10, 2022, 08:27:20 AM

Title: WAN failover scenario.
Post by: Thongtuk05 on August 10, 2022, 08:27:20 AM
I have two wan connections.  Both are consumer connections using DHCP.

I would like to send all the traffic from one of my lan subnets out wan2 and the rest out of wan1.

If either wan link fails, I would like all traffic to be routed over the remaining connection regardless of source.

Setting up wan failover seems straightforward from reading but I am not sure I see an easy way to achieve the other goal.

Any advice would be appreciated.
PG SLOT 2022 (https://webpressive.com/pg-slot-2022/)
Title: Re: WAN failover scenario.
Post by: tong2x on August 10, 2022, 12:53:09 PM
how to you distinguish
"my lan subnets" and "the rest"

typically you would set a wan group with wan1 tier1 and wan 2 teir 2 as WANmulti_rest
create or edit the default allow all, to use WANmulti_rest as gateway
create a rule above that for the "my lan subnets" for gateway wan2

are you on multiple lan? or just 1?
Title: Re: WAN failover scenario.
Post by: Vesalius on August 10, 2022, 03:16:10 PM
One option linked below to a weirdly similar post.

https://forum.opnsense.org/index.php?topic=29723.0