Multi Wan- switching GW

Started by advcron, February 07, 2018, 01:00:01 PM

Previous topic - Next topic
I have configured multi wan from this tutorial.
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)

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)

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



Hi,
I confirm the same behavior.
Lorenzo

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

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:
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).



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

January 22, 2019, 11:31:40 AM #5 Last Edit: January 22, 2019, 11:34:27 AM by maikel
Quote from: 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:
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)


No, both WAN have static IP addresses

Then you should open a new thread .. multi wan works fine in general.