Archive > 18.1 Legacy Series

Multi Wan- switching GW

(1/2) > >>

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

--- Code: ---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

--- End code ---



Routing Table (WAN pppoe DOWN,WAN2 UP)

--- Code: ---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

--- End code ---

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

Thank you for the advice


l.ansaloni:
Hi,
I confirm the same behavior.
Lorenzo

mimugmail:
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

advcron:
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: ---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

--- End code ---

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


franco:
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

Navigation

[0] Message Index

[#] Next page

Go to full version