OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Flush states on gateway switching
« previous next »
  • Print
Pages: [1]

Author Topic: Flush states on gateway switching  (Read 5543 times)

tcpip

  • Newbie
  • *
  • Posts: 22
  • Karma: 3
    • View Profile
Flush states on gateway switching
« on: August 12, 2022, 06:47:53 pm »
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
« Last Edit: August 13, 2022, 06:35:23 pm by tcpip »
Logged

hescominsoon

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
  • CDTT - Certified Duct Tape Technician
    • View Profile
Re: Flush states on gateway switching
« Reply #1 on: August 15, 2022, 02:52:00 am »
care to share the script?
Logged

dalton_lopes

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Flush states on gateway switching
« Reply #2 on: July 29, 2023, 12:59:03 pm »
can you post here your script?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: Flush states on gateway switching
« Reply #3 on: September 08, 2023, 10:42:31 am »
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Flush states on gateway switching
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2