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

    Feature request : OpenVPN auto-connect if lost

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 272 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.
    • B
      blanc_et
      last edited by

      Re: OpenVPN Auto Restart upon drop

      I read this old post. I have not come across a fix that I could use.

      Basically, after setting up the OpenVPN client, many times after it is working just fine, the connection is lost. I think it's lost on the server side. Because if I had been given a 20.20.0.5, when I click the restart wheel suddenly the whole conection displays go red and down, for a second, and back to green with a new 20.20.0.8 for example. And this only will happen if I actively go and click. And for the longest time I could not figure this out as it seemed okay, -green-, (so connected), but is really wasn't.
      How about a setting that would automatically restart the client/service if it finds the connection is dead?

      1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600
        last edited by bingo600

        I have several OVPN Lan2Lan tunnels , and i never experience that the client does not keep trying to connect to the server.

        I do have the package service_watchdog installed on both pfsense's , and have added all openvpn instances to the service watchdog.

        8ad5a862-54f7-434a-9d39-4cdc20e84991-image.png

        I occationally see service watchdog , starting unbound or ntopng.
        Can't remember if i have seen it start an openvpn instance.

        If you're talking about a RoadWarrior (dialin) OpenVPN client.
        I have not used a connection long enough to see it fail a connection.

        But i suppose you mean a L2L/S2S connection

        Edit:
        What i often see is that the "Dashboard" indicates the OpenVPN tunnel isn't up (Red down arrow) , but that is some kind of "Status mismatch" , because i can mostly connect to the remote site , even if the status says otherwise.

        That would be nice to get the "status arrows" fixed, so they reflect connectivity , instead of "whatever they use now"

        The same mismatch occurs on the Status -> OpenVPN page

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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