Static route drops

Started by Deku, April 09, 2021, 06:31:48 PM

Previous topic - Next topic
April 09, 2021, 06:31:48 PM Last Edit: April 09, 2021, 09:35:43 PM by Deku
I'm using an OpenConnect VPN that occasionally loses connectivity, which it is able to re-establish without issue.  However, I have a static route defined using that gateway for a system outside of the subnet.  When the VPN drops, the static route does not function when it comes back up.  I have to go to the Routes Configuration and hit Apply again - then all is well.  Some settings I've tried to use to resolve the problem "Interface can not be removed", "Disable Gateway Monitoring".. anything that might allow the route to stay in place.

Any suggestions on how to force this static route to stick around when the VPN / gateway / interface drops?  I'm having to reapply it multiple times a day.

For now, I just created a cron job that runs every minute to add the static route.  It's ignored if it already exists.