OPNsense Forum

English Forums => General Discussion => Topic started by: dalton_lopes on July 29, 2023, 01:09:46 PM

Title: How get back Disable State Killing on Gateway Failure function on 23.1.11
Post by: dalton_lopes on July 29, 2023, 01:09:46 PM
scenario

wan1 - fiber link
wan2 - 4G link

gateway group
wan1 - tier 1
wan2 - tier 2

when wan1 fails assume wan2 but states keeps in wan1
i need restart manually connections to use wan2
i really need kill states when wan1 fails and kill wan2 when wan1 back online

I need to enable the option "Kill states" but is not present

How get back this function without rollback version?
Title: Re: How get back Disable State Killing on Gateway Failure function on 23.1.11
Post by: dalton_lopes on August 01, 2023, 04:08:23 AM
nobody?
Title: Re: How get back Disable State Killing on Gateway Failure function on 23.1.11
Post by: dalton_lopes on August 01, 2023, 04:36:43 AM
i need kill state (/sbin/pfctl -Fs) from offline gateway.
if i dont kill state all running connections dont change to the next gateway that i set in gateway group and i need the same thing when wan1 come back online.

i dont know what to do.

a simple router tplink dual wan works well with link backup configuration and the opnsense can not.

that's all i need

please help me
Title: Re: How get back Disable State Killing on Gateway Failure function on 23.1.11
Post by: doktornotor on December 13, 2023, 01:48:07 PM
You can play with partially reverting this commit (https://github.com/opnsense/core/commit/58a13cdea9aa6037ca11a734a0d818e30f885afd) (sans the GUI configuration/conditional bits).

Much more preferable: figure out something with Services - Monit.

Otherwise, there's core/#6803 issue (https://github.com/opnsense/core/issues/6803) open.