OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: advcron on February 07, 2018, 01:00:01 pm

Title: Multi Wan- switching GW
Post by: advcron on February 07, 2018, 01:00:01 pm
I have configured multi wan from this tutorial.
https://docs.opnsense.org/manual/how-tos/multiwan.html (https://docs.opnsense.org/manual/how-tos/multiwan.html)
Option failover

When wan1 is down I don't have internet on station (unless I turn on Firewall->Settings-Advanced->Allow default gateway switching) But this option is  deprecated.



My secenerio:
WAN - pppoe (default gw)
WAN2 - Static address

Routing Table (WAN pppoe UP)
Code: [Select]
ipv4 default 10.10.10.1 UGS 96 1492 pppoe0 wan
ipv4 10.3.4.0/29 link#9 U 107831 1500 em0_vlan100 WAN2
ipv4 10.3.4.3 link#9 UHS 0 16384 lo0
ipv4 10.10.10.1 link#14 UH 351 1492 pppoe0 wan
ipv4 10.10.10.5 link#14 UHS 0 16384 lo0
ipv4 127.0.0.1 link#6 UH 16436 16384 lo0
ipv4 172.25.100.0/26 link#10 U 0 1500 em0_vlan10 MGM_ZONE
ipv4 172.25.100.1 link#10 UHS 22 16384 lo0
ipv4 172.25.101.0/26 link#11 U 24 1500 em0_vlan11 SRVALL_ZONE



Routing Table (WAN pppoe DOWN,WAN2 UP)
Code: [Select]
ipv4 10.3.4.0/29 link#9 U 107995 1500 em0_vlan100 WAN2
ipv4 10.3.4.3 link#9 UHS 0 16384 lo0
ipv4 127.0.0.1 link#6 UH 16524 16384 lo0
ipv4 172.25.100.0/26 link#10 U 0 1500 em0_vlan10 MGM_ZONE
ipv4 172.25.100.1 link#10 UHS 22 16384 lo0
ipv4 172.25.101.0/26 link#11 U 24 1500 em0_vlan11 SRVALL_ZONE
ipv4 172.25.101.1 link#11 UHS 0 16384 lo0
ipv4 172.30.0.0/24 192.168.0.247 UGS 0 1500 em0 lan
ipv4 192.168.0.0/24 link#1 U 490384 1500 em0 lan
ipv4 192.168.0.1 link#1 UHS 11496 16384 lo0

Tables show routes when option Firewall-Settings-Advanced-Allow default gateway switching is disable.

Thank you for the advice


Title: Re: Multi Wan- switching GW
Post by: l.ansaloni on February 08, 2018, 04:47:16 pm
Hi,
I confirm the same behavior.
Lorenzo
Title: Re: Multi Wan- switching GW
Post by: mimugmail on February 08, 2018, 06:16:34 pm
Franco told me about a fix in 18.1.2 which could fix this possibly .. if not we'll try to find this one soon.

https://github.com/opnsense/core/issues/1821
Title: Re: Multi Wan- switching GW
Post by: advcron on February 09, 2018, 08:24:22 am
18.1.2-2 -  still does not work

Next strange thing. I was add static route (Please correct me if I was this wrong). My steps:
1. Add Gateway (System - Gateway -> ALL -> Add ->  Serwer_OpenVPN )
2. Add Route (System -> Configuration -> Route
3. Add Firewall rule

When WAN ppoe is down and firewall option > Default gateway switching is enebled the routes looks:
Code: [Select]
ipv4 default 192.168.0.247 UGS 85 1500 em0 lan
ipv4 10.3.4.0/29 link#10 U 61557 1500 em0_vlan100 WAN2
ipv4 10.3.4.3 link#10 UHS 0 16384 lo0
ipv4 127.0.0.1 link#7 UH 49857 16384 lo0
ipv4 172.25.100.0/26 link#11 U 0 1500 em0_vlan10 MGM_ZONE
ipv4 172.25.100.1 link#11 UHS 0 16384 lo0
ipv4 172.25.101.0/26 link#12 U 69 1500 em0_vlan11 SRVALL_ZONE
ipv4 172.25.101.1 link#12 UHS 0 16384 lo0
ipv4 172.30.0.0/24 192.168.0.247 UGS 0 1500 em0 lan
ipv4 192.168.0.0/24 link#1 U 9290 1500 em0 lan

The default gateway set to Serwer_OpenVPN gate not to wan2. But on station internet goes through wan2 (Grupa_WAN).


Title: Re: Multi Wan- switching GW
Post by: franco on February 12, 2018, 10:56:09 pm
Not sure if this is on GitHub already. If not, please record it there. It will surely get lost in the forum very soon.


Cheers,
Franco
Title: Re: Multi Wan- switching GW
Post by: maikel on January 22, 2019, 11:31:40 am
18.1.2-2 -  still does not work

Next strange thing. I was add static route (Please correct me if I was this wrong). My steps:
1. Add Gateway (System - Gateway -> ALL -> Add ->  Serwer_OpenVPN )
2. Add Route (System -> Configuration -> Route
3. Add Firewall rule

When WAN ppoe is down and firewall option > Default gateway switching is enebled the routes looks:
Code: [Select]
ipv4 default 192.168.0.247 UGS 85 1500 em0 lan
ipv4 10.3.4.0/29 link#10 U 61557 1500 em0_vlan100 WAN2
ipv4 10.3.4.3 link#10 UHS 0 16384 lo0
ipv4 127.0.0.1 link#7 UH 49857 16384 lo0
ipv4 172.25.100.0/26 link#11 U 0 1500 em0_vlan10 MGM_ZONE
ipv4 172.25.100.1 link#11 UHS 0 16384 lo0
ipv4 172.25.101.0/26 link#12 U 69 1500 em0_vlan11 SRVALL_ZONE
ipv4 172.25.101.1 link#12 UHS 0 16384 lo0
ipv4 172.30.0.0/24 192.168.0.247 UGS 0 1500 em0 lan
ipv4 192.168.0.0/24 link#1 U 9290 1500 em0 lan

The default gateway set to Serwer_OpenVPN gate not to wan2. But on station internet goes through wan2 (Grupa_WAN).

Any update on this issue? I'm facing the same behavior. (18.7.10_3)
Title: Re: Multi Wan- switching GW
Post by: mimugmail on January 22, 2019, 01:46:06 pm
Do you have 2 DHCP WANs?
Title: Re: Multi Wan- switching GW
Post by: maikel on January 22, 2019, 02:06:00 pm
No, both WAN have static IP addresses
Title: Re: Multi Wan- switching GW
Post by: mimugmail on January 22, 2019, 02:12:45 pm
Then you should open a new thread .. multi wan works fine in general.