Skip to main content
fortihaza
New Member
March 5, 2021
Solved

Automatically Disable VPN interface

  • March 5, 2021
  • 3 replies
  • 4314 views

Hello Everyone,

I don't know if what i want is even possible but here it is. I have a client site with two vpns tunnel to two remote locations. What i want is if the ping to an internal ip address in one of the remote locations is fail i want the vpn interface toward that location to be disable.

Thanks in advance.

Best answer by emnoc

Yeah I would think you could use SDWAN and ipsla monitor or I would run a dynamic-routing over that tunnel lan2lan.

 

Also not relevant to your issues, but if you want to manually disable a vpn , set the fwpolicy to disable. Without a policy and without a policy enabled, the IKE negotiation will fail or not happen.

 

 

Ken Felix

 

3 replies

Toshi_Esumi
SuperUser
SuperUser
March 5, 2021

It's not clear about your final goal is based on the method you described by "disalbe a VPN". If ping through the tunnel goes done, the tunnel is likely down/diabled already whatever the cause is. Then static routes toward the tunnel would have been disabled/disappeared as well. What's your actual goal you want to accomplish when the tunnel is down, not a method.

emnoc
emnocAnswer
New Member
March 5, 2021

Yeah I would think you could use SDWAN and ipsla monitor or I would run a dynamic-routing over that tunnel lan2lan.

 

Also not relevant to your issues, but if you want to manually disable a vpn , set the fwpolicy to disable. Without a policy and without a policy enabled, the IKE negotiation will fail or not happen.

 

 

Ken Felix

 

ede_pfau
SuperUser
SuperUser
March 7, 2021

Unfortunately, there is no easy way to really disable a VPN. You can cripple it by disabling the policy as Ken stated but

a) this can be done manually only

and

b) the poor FGT will retry every couple of seconds in vain, filling the VPN log with trash.

 

VPNs are materialized in virtual interfaces. What if you disable the interface, would that stop a VPN from trying?

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!