OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: gertfriend on February 07, 2022, 12:17:50 pm

Title: Gateway switching unable to browse Internet
Post by: gertfriend on February 07, 2022, 12:17:50 pm
Hi,

can someone help me with Gateway switching.

I'm having 2 WAN on 2 Interfaces:
WAN1 -> 192.168.1.10
WAN2 -> 192.168.2.10

Now, if i enable Gateway switching and set priorities WAN1 10 and WAN2 20:
If WAN1 is online everything is working fine
If WAN1 is down the gateway is switching but browsing is not possible. The firewall can communicate with the Internet but the computers in Lan not.
If i manually add a Outbound NAT Rule for WAN2 browsing is working until WAN1 is back and WAN2 fails. Then browsing isn't possible anymore because Outbound NAT Rule for WAN1 is second and for the first Outbound rule the gateway isn't reachable.

What i'm doing wrong? Shouldn't work anything without creating a second Outbound Nat Rule.

Time ago i used Gateway Groups for this but first i'm not able to bring back working this and second are there limitations and additional configurations needed for VPN so i would do Failover with Gateway switching.

Thanks anybody for help.
Title: Re: Gateway switching unable to browse Internet
Post by: gertfriend on February 07, 2022, 03:25:18 pm
Sorry, my mistake. There was no Gateway set in Interface WAN2 so this interface wasn't declared as Gateway and in consequence there wasn't defined a Outbound NAT rule.