Losing default route several times a day

Started by NOYB, December 15, 2017, 11:25:12 PM

Previous topic - Next topic
Several times every day the default route vanishes.
Save and apply gateway re-establishes the default route.

Is there a known issue or resolution?  If not could use guidance in troubleshooting this.

Thanks.

17.7.10 on VirtualBox 5.2.2

Hi,

there are some issues wit Mulit WAN and pppoe/dhcp, but as you are using Virtualbox should be static?
Do you have some logs from system.log?

Michael

December 16, 2017, 10:09:26 AM #2 Last Edit: December 16, 2017, 10:14:31 AM by NOYB
It is multi WAN.  Have narrowed it down to OPT1 interface DHCP renewal causing the default route on WAN interface to be removed.  Can manually trigger it at will by doing release/renew on the OPT1 interface.

Edit:
It is standard Ethernet interface.  No pppoe etc.

I have one system with dhcp as default gateway and static as second running fine in production.
If you run local services on it (like OpenVPN listening on any) be sure to set in:

Firewall - Settings - Advanced:
Kill states: ticked
Skip rules: not ticked
Gateway switching: ticked

Sticky connections: ticked
Shared forwarding: ticked
Disabled force gateway: ticked (only important for DNAT in your LAN from both WANs)

I did some testing, perhaps you want to share your experiences:
https://github.com/opnsense/core/issues/1821

This week I did intensive testing witch Franco for pppoe as default and static (LTE) as second, but not really satisfying .. but we are on a good track :)

December 19, 2017, 01:01:24 PM #4 Last Edit: December 19, 2017, 01:06:23 PM by NOYB
Finally got around to exploring those settings.

Gateway switching prevents OPT1 interface DHCP release/renew from causing the default route on WAN interface from being removed.

"If the link where the default gateway resides fails switch the default gateway to another available one. This feature has been deprecated."

Unfortunately gateway switching is not the desired behavior.  Besides, the feature has been deprecated.

But perhaps this can point someone in the direction of the cause.