OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: viktor on October 11, 2017, 09:17:20 am

Title: OPNsense default gateway switch
Post by: viktor on October 11, 2017, 09:17:20 am
Hello,

openvpn setup:
 - latest openvpn version (17.7.5)
 - 2 wan links with static ip's (static ip configuration on interfaces)
 - wan failover group (tier1-tier2/member down) (all LAN traffic router via wan_failover GW)
 - WAN_1_GW - default gw (0.0.0.0/0 via WAN_1_GW)

issue description:
"System-Gateways-All-WAN_2_GW-Edit-Default gateway-check-Save"
https://example.com/system_gateways_edit.php?id=1

 - when i'm connected to router from WAN and trying to change default gateway, i'm loosing all the connectivity to opnsense (icmp, vpn, port forwarding)

 - wan_failover group works fine though. people from LAN still having internet connection

it looks like opnsense disable old default route and does not enable new one

P.S
as it turned out it's required to press Apply button to apply settings
but it's impossible to do when you're making changes from WAN
i guess you need to do save and apply in one step (in GW edit dialog)

added issue on github
https://github.com/opnsense/core/issues/1874
Title: Re: OPNsense default gateway switch
Post by: franco on October 12, 2017, 08:30:57 pm
Hi Victor,

Thanks, we'll discuss on GitHub. :)


Cheers,
Franco