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

    Restarting OpenVPN when connection is down

    General pfSense Questions
    2
    2
    253
    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.
    • V
      vtmikel
      last edited by

      Are there an alternative strategies to identifying if a WAN interface (such as a OpenVPN interface) is down if the gateway for that interface is not pingable?  Private Internet Access is known for doing this, so pfsense assumes that the gateway is always up.  I'd like to be able to restart the OpenVPN service when the connection is down.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • T
        TheNarc
        last edited by

        I'm not aware of anything other than dpinger, but you can specify the IP that it pings to check connectivity.  While generally pinging the gateway makes the most sense, if it's not reliable you can use something else.  For example, you could ping one of Google's DNS servers live 8.8.8.8.

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