OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: NOYB on December 15, 2017, 11:25:12 pm

Title: Losing default route several times a day
Post by: NOYB on December 15, 2017, 11:25:12 pm
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
Title: Re: Losing default route several times a day
Post by: mimugmail on December 16, 2017, 08:12:13 am
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
Title: Re: Losing default route several times a day
Post by: NOYB on December 16, 2017, 10:09:26 am
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.
Title: Re: Losing default route several times a day
Post by: mimugmail on December 16, 2017, 01:18:53 pm
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 :)
Title: Re: Losing default route several times a day
Post by: NOYB on December 19, 2017, 01:01:24 pm
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.