Skip to main content
JakiHergerson
New Member
July 8, 2021
Question

Site-to-Site VPN restart automatic

  • July 8, 2021
  • 1 reply
  • 3466 views

Hello colleagues,

we have problems with 2 of our S-t-S VPNs, is there a way to rebuild them automatically every 24 hours? Thanks for your help, I'm really at a loss right now.

All the best

Sven

    1 reply

    sw2090
    SuperUser
    SuperUser
    July 8, 2021

    hm

     

    maybe one could create some script and have it executed by schedule on the FGT.

     

    usefull commands might be:

     

    exec ypn ipsec tunnel up|down <p2 name>  - take a tunnel up/down

     

    diag vpn ike gateway clear name <phase1 name> - will kill the named p1

     

    if p1 autonegotiating is enabled (which it is by default) the FGT will re-establish the tunnel automatically afterwards.