Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Auto restart VPN tunnel if down

    OpenVPN
    1
    1
    804
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      papafife last edited by

      Hello,

      I need help creating a way for pfSense to test my client VPN tunnel and restart the connection if it is down.  I have the following, which i found in these forums, in a shell file which will restart the tunnel but does not check the status.

      echo "" | php -q
      

      I would like a shell file that I can schedule within cron.  Ideally it would run every 5 minutes and if the status of the VPN tunnel is up then it will do nothing, but if it is down it will restart.  I need this because my current internet provider drops my connection quite often and the VPN does not automatically reestablish.  But if I just run the code I have every 5 minutes it will disconnect my working connection and then reconnect.

      Any help would be appreciated and details on what any script is doing is appreciated also but not required.  I can google the details on lines of code if needed.  Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Products

      • Platform Overview
      • TNSR
      • pfSense
      • Appliances

      Services

      • Training
      • Professional Services

      Support

      • Subscription Plans
      • Contact Support
      • Product Lifecycle
      • Documentation

      News

      • Media Coverage
      • Press
      • Events

      Resources

      • Blog
      • FAQ
      • Find a Partner
      • Resource Library
      • Security Information

      Company

      • About Us
      • Careers
      • Partners
      • Contact Us
      • Legal
      Our Mission

      We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

      Subscribe to our Newsletter

      Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

      © 2021 Rubicon Communications, LLC | Privacy Policy