Ubuntu – OpenVPN server: how to tell if server is listening/working

openvpnvpn

I'm trying to set up an OpenVPN server on an EC2 instance. There doesn't seem to be any Ubuntu documentation for OpenVPN, so I'm mostly following the instructions here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04

My Android phone reports "connection refused". Tunnelblick says "TLS handshake failed".

I would like to check that OpenVPN actually is listening on my server. But there's no OpenVPN process running – it uses systemd. And it uses UDP rather than TCP, so the usual trick of connecting with telnet doesn't work. Can anyone tell me how I can verify that OpenVPN is actually listening?

The server is running Ubuntu Trusty.

Best Answer

I got OpenVPN working. To answer my question:

There should be a server running like this:

$ ps auxww | grep openvpn
root       536  0.0  0.5  35672  5108 ?        Ss   00:47   0:00 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/server.conf --writepid /run/openvpn/server.pid

In my case there wasn't due to a misconfiguration. It's fairly obvious, but for the record: to find openvpn problems in the syslog:

sudo service openvpn stop
sudo service openvpn start
sudo tail /var/log/syslog
Related Question