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

    OpenVPN presistant tunnel - How often is a connection checked?

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 2 Posters 2.0k Views
    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.
    • T
      torontob
      last edited by

      Hi everyone,

      I want to know if there is a parameter on both the SERVER side and the CLIENT side to retry OpenVPN connection if it breaks. I know of "persist-key" and "persist-tun" but it doesn't tell me how many seconds it takes to try a connection or a re-connection.

      Do I even need that? I guess if someone can explain OpenVPN technology connection part to

      Thanks

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        http://openvpn.net/index.php/open-source/documentation/howto.html

        
        # The keepalive directive causes ping-like
        # messages to be sent back and forth over
        # the link so that each side knows when
        # the other side has gone down.
        # Ping every 10 seconds, assume that remote
        # peer is down if no ping received during
        # a 120 second time period.
        keepalive 10 120
        
        1 Reply Last reply Reply Quote 0
        • T
          torontob
          last edited by

          Thanks for that.

          To complicate this, is there any feature within OpenVPN that would allow me to run a script if a PING is responded? Say something that would alarm me in time to check the issue?

          Thanks

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            Sorry, in this way I cannot help you. :(

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.