OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Multi Wan- switching GW
« previous next »
  • Print
Pages: [1]

Author Topic: Multi Wan- switching GW  (Read 12667 times)

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 1
    • View Profile
Multi Wan- switching GW
« 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
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


Logged

l.ansaloni

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Multi Wan- switching GW
« Reply #1 on: February 08, 2018, 04:47:16 pm »
Hi,
I confirm the same behavior.
Lorenzo
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6299
  • Karma: 434
    • View Profile
Re: Multi Wan- switching GW
« Reply #2 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
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 1
    • View Profile
Re: Multi Wan- switching GW
« Reply #3 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).


Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13689
  • Karma: 1176
    • View Profile
Re: Multi Wan- switching GW
« Reply #4 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
Logged

maikel

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Multi Wan- switching GW
« Reply #5 on: January 22, 2019, 11:31:40 am »
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:
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)
« Last Edit: January 22, 2019, 11:34:27 am by maikel »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6299
  • Karma: 434
    • View Profile
Re: Multi Wan- switching GW
« Reply #6 on: January 22, 2019, 01:46:06 pm »
Do you have 2 DHCP WANs?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

maikel

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Multi Wan- switching GW
« Reply #7 on: January 22, 2019, 02:06:00 pm »
No, both WAN have static IP addresses
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6299
  • Karma: 434
    • View Profile
Re: Multi Wan- switching GW
« Reply #8 on: January 22, 2019, 02:12:45 pm »
Then you should open a new thread .. multi wan works fine in general.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Multi Wan- switching GW
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2