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

    No server but still can connect

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 4 Posters 1.1k 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.
    • J
      justsomeguy6575
      last edited by

      So I had an openvpn server instance setup awhile back for my phone and it all worked great. I stopped using that phone for a while and along the way delete the server instance from pfsense. At this point there are no vpn's setup in the pfsense gui. I have started using the phone again and fired up my android openvpn client which still had the original config in it. To my surprise it connected. Went back to pfsense and there is no server showing in the gui but the openvpn log shows my phone connecting. Both the openvpn serve and staus pages show no servers setup but there obviously must be. How to I get rid of that?

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

        :o

        The devs would like to see logs and pics to prove your case… maybe also a copy of your config (but only if they ask for it!)

        1 Reply Last reply Reply Quote 0
        • 2
          2chemlud Banned
          last edited by

          Absolutely cool feature! MUST have.

          Maybe some more servers up and running for "telemetry and improving customer experience"? Who knows?

          1 Reply Last reply Reply Quote 0
          • J
            justsomeguy6575
            last edited by

            Pics

            ![openvpn log.jpg](/public/imported_attachments/1/openvpn log.jpg)
            ![openvpn log.jpg_thumb](/public/imported_attachments/1/openvpn log.jpg_thumb)
            ![openvpn server.jpg](/public/imported_attachments/1/openvpn server.jpg)
            ![openvpn server.jpg_thumb](/public/imported_attachments/1/openvpn server.jpg_thumb)
            ![openvpn status.jpg](/public/imported_attachments/1/openvpn status.jpg)
            ![openvpn status.jpg_thumb](/public/imported_attachments/1/openvpn status.jpg_thumb)

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              What version are you running?

              Deleting OpenVPN instances kills off the PID that OpenVPN writes to its PID file. There were issues with earlier OpenVPN 2.3.x versions where it doesn't correctly write out its PID file's contents, in which case deleting that instance will try to kill a PID that doesn't actually correspond to OpenVPN (and likely doesn't exist at all).

              You'll find the PID file in /var/run/openvpn_server1.pid (assuming it was instance 1). Check the running instance with 'ps auwwx | grep openvpn'. Its PID that's running is 43054 judging by your logs. That PID file likely has some other number in it ('cat /var/run/openvpn_server1.pid' to check).

              After verifying that, just run 'killall openvpn' and it'll be gone.

              1 Reply Last reply Reply Quote 0
              • J
                justsomeguy6575
                last edited by

                @cmb:

                What version are you running?

                Deleting OpenVPN instances kills off the PID that OpenVPN writes to its PID file. There were issues with earlier OpenVPN 2.3.x versions where it doesn't correctly write out its PID file's contents, in which case deleting that instance will try to kill a PID that doesn't actually correspond to OpenVPN (and likely doesn't exist at all).

                You'll find the PID file in /var/run/openvpn_server1.pid (assuming it was instance 1). Check the running instance with 'ps auwwx | grep openvpn'. Its PID that's running is 43054 judging by your logs. That PID file likely has some other number in it ('cat /var/run/openvpn_server1.pid' to check).

                After verifying that, just run 'killall openvpn' and it'll be gone.

                Thanks, killall openvpn seemed to clear it out. There was a process running with PID 43054 but could not find any file in "/var/run/" for openvpn_server.
                Anyhow setup a new server and all seems to be working great.

                Thanks

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