Question

Trying to install OpenVPN

Posted October 31, 2018 1k views
DigitalOcean VPN Ubuntu 16.04

I’m trying to install openVPN on ubuntu from this tutorial - How To Set Up an OpenVPN Server on Ubuntu 16.04

in Step 9: Start and Enable the OpenVPN Service

when I enter:
sudo systemctl status openvpn@server

I get the following output and then Terminal freezes and I can’t do anything other than close Terminal and kill the process:

openvpn@server.service - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2018-10-31 14:12:19 EDT; 23s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 18044 ExecStart=/usr/sbin/openvpn –daemon ovpn-%i –status /run/openvpn/%i.status
Main PID: 18046 (openvpn)
CGroup: /system.slice/system-openvpn.slice/openvpn@server.service
└─18046 /usr/sbin/openvpn –daemon ovpn-server –status /run/openvpn/server.status

Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: /sbin/ip route add 10.8.0.0/2
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: GID set to nogroup
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: UID set to nobody
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: UDPv4 link local (bound): [un
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: UDPv4 link remote: [undef]
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: MULTI: multi_init called, r=2
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: IFCONFIG POOL: base=10.8.0.4
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: IFCONFIG POOL LIST
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd ovpn-server[18046]: Initialization Sequence Compl
Oct 31 14:12:19 gary-ThinkPad-X1-Carbon-2nd systemd[1]: Started OpenVPN connection to server.
~
~
lines 1-21/21 (END)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hello, @djgap

I know it’s been a long time you’ve asked for help and I hope you’ve sorted this. I had a similar issue and what I did was to execute this command in the background as doing this in the foreground was doing the exact same thing.

Then I was able to strace the process ID and see that everything is okay. However I ended up uninstalling it and installing from scratch as this was not a working setup for me.

I hope you’ve managed to sort this as well.

Regards,
Alex

Submit an Answer