Flush states on gateway switching

Started by tcpip, August 12, 2022, 06:47:53 PM

Previous topic - Next topic
August 12, 2022, 06:47:53 PM Last Edit: August 13, 2022, 06:35:23 PM by tcpip
Hey guys,

since the option "Disable State Killing on Gateway Failure" is removed* since a while now, I was wondering how to get back the "old" behaviour without the option beeing ticked. I just use default gateway switching with my dual WAN setup and have a metered LTE connection as backup. As soon as my primary WAN comes back online I want all states to be killed, so that there is no traffic beeing routed via my backup link any longer.

Thanks!

EDIT: I wrote a script to handle this for now.

*https://forum.opnsense.org/index.php?topic=28179



There is a ticket for this. https://github.com/opnsense/core/issues/6803

The design isn't clear yet but the use case is valid.


Cheers,
Franco