OPNsense Forum

English Forums => General Discussion => Topic started by: ricksense on December 09, 2024, 03:31:07 PM

Title: Dual WAN Failover with same gateway issue
Post by: ricksense on December 09, 2024, 03:31:07 PM
Hi everyone,

I was wondering if it is possible to set up a dual WAN failover where both WANs have the same gateway.
This could be the case if you have two modems/routers and two connection lines from the same ISP (or they could be different for that matter), and you put an OPNsense device behind them to better manage and protect your network.

Is it possible in OPnsense? Could there be some problems?
Thanks
Title: Re: Dual WAN Failover with same gateway issue
Post by: ricksense on December 10, 2024, 12:15:05 PM
anyone?
Title: Re: Dual WAN Failover with same gateway issue
Post by: viragomann on December 10, 2024, 06:54:23 PM
No, this isn't going to work at all.
OPNsense uses routing to detect if an upstream connection is alive and route the traffic to the respective gateway. Routing to different devices requires different IPs, however.

You should be able to configure different local subnets on the routers.

It would also be possible if both have the same though, but then they need different LAN IPs and you can only connect a single WAN of OPNsense to them, means you need also a switch between the devices.
Title: Re: Dual WAN Failover with same gateway issue
Post by: ricksense on December 10, 2024, 08:41:48 PM
Quote from: viragomann on December 10, 2024, 06:54:23 PM

It would also be possible if both have the same though, but then they need different LAN IPs and you can only connect a single WAN of OPNsense to them, means you need also a switch between the devices.

I don't think that I've understood what you mean above.
Thanks
Title: Re: Dual WAN Failover with same gateway issue
Post by: viragomann on December 10, 2024, 09:35:15 PM
To be honest, I'm not sure if that really works.
Best is to have different Subnets on different network interfaces.
Title: Re: Dual WAN Failover with same gateway issue
Post by: Monviech (Cedrik) on December 10, 2024, 09:41:07 PM
https://github.com/opnsense/core/issues/6576