1
17.7 Legacy Series / Re: Losing Default Gateway when Release/Renew of DHCP based port
« on: January 30, 2018, 12:57:41 am »
Same issue here. OPNsense 17.7, fresh VMWare install
Dual-wan setup with load balancing
WAN port -> Static IPv4
OPT1 -> DHCP
Gateway on WAN port configured as default gateway
Gateway on OPT1 port configured as dynamic
Sometimes DHCP internet connection goes down and DHCP release/renew fails to obtain an IP address.
When this happens system loses internet access and checking for updates fails, 1:1 nat to virtual IPs fails too.
In system -> routes you can see "default" destination route changes its gateway from the ip address of the default gateway on WAN interface to "link #3" (OPT1 interface).
To "fix" this I go to Interfaces -> Overview -> OPT1 release
Then System -> Gateways -> All and edit gateway on WAN interface.
Untick/save/apply/tick/save/apply on "default gateway" checkbox and system can check for updates again.
To restore 1:1 nat mappings I have to delete virtual IPs entries and recreate them again.
In system -> routes you can see "default" destination route changes back to the gateway on WAN interface.
Dual-wan setup with load balancing
WAN port -> Static IPv4
OPT1 -> DHCP
Gateway on WAN port configured as default gateway
Gateway on OPT1 port configured as dynamic
Sometimes DHCP internet connection goes down and DHCP release/renew fails to obtain an IP address.
When this happens system loses internet access and checking for updates fails, 1:1 nat to virtual IPs fails too.
In system -> routes you can see "default" destination route changes its gateway from the ip address of the default gateway on WAN interface to "link #3" (OPT1 interface).
To "fix" this I go to Interfaces -> Overview -> OPT1 release
Then System -> Gateways -> All and edit gateway on WAN interface.
Untick/save/apply/tick/save/apply on "default gateway" checkbox and system can check for updates again.
To restore 1:1 nat mappings I have to delete virtual IPs entries and recreate them again.
In system -> routes you can see "default" destination route changes back to the gateway on WAN interface.