No server but still can connect



  • 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?



  • :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!)


  • Banned

    Absolutely cool feature! MUST have.

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



  • 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)



  • 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.



  • @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


Log in to reply