OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: soko on January 23, 2021, 04:12:54 PM

Title: Single WAN, but Multi Gateway not working
Post by: soko on January 23, 2021, 04:12:54 PM
Hi guys,

I was running OPNsense successfully with one LAN and two WANs (one gateway each) with a Gateway Group for failover according to https://docs.opnsense.org/manual/how-tos/multiwan.html.

Now after a change in my network I'm having the failover gateway in the same WAN-network as the main gateway.

So I thought "No biggy!" and

But now, once my main gateway fails, the failover gateway is marked "active" but I have no internet on my LAN side.

Does anybody know why?

Here are a little more details....

Original/old/working config:
LAN: 192.168.254.0/24 (OPNsense static 192.168.254.253)
WAN: 192.168.179.0/24 (OPNsense static 192.168.179.253, Gateway 192.168.179.254)
WANFailover: 192.168.253.0/30 (OPNsense static 192.168.253.1, GatewayFailover 192.168.253.2)

New/not-working config:
LAN: 192.168.254.0/24 (OPNsense static 192.168.254.253)
WAN: 192.168.179.0/24 (OPNsense static 192.168.179.253, Gateway 192.168.179.254, GatewayFailover 192.168.179.1)

thanks
Soko
Title: Re: Single WAN, but Multi Gateway not working
Post by: franco on January 23, 2021, 07:29:22 PM
Hi Soko,

No Internet or no DNS?


Cheers,
Franco
Title: Re: Single WAN, but Multi Gateway not working
Post by: soko on January 24, 2021, 07:53:48 AM
Hi Franco,

No internet.

From a LAN PC i was constantly pinging an internet server.
Then I shutdown 192.168.179.254 and the ping was timing out until I turned it on again.
192.168.179.1 was up and had internet connection.

Soko
Title: Re: Single WAN, but Multi Gateway not working
Post by: soko on January 24, 2021, 10:22:16 AM
...
Title: Re: Single WAN, but Multi Gateway not working
Post by: soko on January 24, 2021, 10:55:09 AM
Hi,

I'm trying to wrap my head around that issue and I think all this should work with no Gateway Group at all...

So I've tried the following config (IPv6 is generally disabled):

System: Gateways: Single:

Usually there is (active) written behind WAN_GW

System: Settings: General:

Interfaces: WAN:

System: Routes: Status:

Firewall: Rules: LAN:

Firewall: Settings: Advanced:

The test:

Now I shut down my WAN_GW (device with 192.168.179.254).

After a little wait I have the following:

System: Gateways: Single:

System: Routes: Status:

So everything should work => but it doesn't. I have no internet connection.

What doesn't help

What does help


Conclusion
I my knowledge of networks I don't get why the above test is not working even when:

Maybe someone can shed a light on this...
Or maybe a Multi-GW + Single WAN config has to be completely different to work.

thx
Soko