Skip to main content
paulogermano
New Member
June 12, 2019
Question

Script VPN Bring Down

  • June 12, 2019
  • 1 reply
  • 4891 views

Mates,

 

Anyone knows if there is some script that let me know via email (Email is configured in Fortigate) if the VPN Tunnel is Off? And if there is some script to -reactivate again (Bring Up)?

 

Thanks a lot.

    1 reply

    hubertzw
    New Member
    June 12, 2019

    1) you can check 'config alertemail setting' and then 'IPsec*' 2) to keep the tunel up you can: 'set auto-negotiate enable' under 'config vpn ipsec phase2*'

    paulogermano
    New Member
    June 13, 2019

    "2) to keep the tunel up you can: 'set auto-negotiate enable' under 'config vpn ipsec phase2*'"

     

    How can I do this?

     

    Can you write the CLI command?

     

    Thanks!

    hubertzw
    New Member
    June 13, 2019

    config vpn ipsec phase2 [TAB/? - not sure what you have here]

     [show or show full to see the settings and if the below one is disabled]

      set auto-negotiate enable

     

    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.