Hi, I''ve followed this tut:
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
It seems something is wrong. Can it have anything to do with an earlier RSA key I created in attempt of setting up an SSL encryption to go with my Apache server? Or shouldn't it be any concern?
This is what I'm getting after running sudo systemctl start openvpn@server and then sudo systemctl status openvpn@server:
buksa@Ubuntu-1604-xenial-64-minimal:/$ sudo systemctl status openvpn@server
● openvpn@server.service - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-03-28 10:55:10 CEST; 1s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 808 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc
Main PID: 809 (code=exited, status=1/FAILURE)
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: TCP: listen() failed: Address already in use (errno=98)
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: Exiting due to fatal error
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: /sbin/ip route del 10.8.0.0/24
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: ERROR: Linux route delete command failed: external program exited with error statu
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: Closing TUN/TAP interface
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal ovpn-server[809]: Linux ip addr del failed: external program exited with error status: 2
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal systemd[1]: openvpn@server.service: Main process exited, code=exited, status=1/FAILURE
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal systemd[1]: openvpn@server.service: Unit entered failed state.
Mar 28 10:55:10 Ubuntu-1604-xenial-64-minimal systemd[1]: openvpn@server.service: Failed with result 'exit-code'.
I usually understand some of the error messages I get. But here I don't have a clue of what is wrong.
When I set it up I chose to use port 433 instead of the default one, since this is commonly open on most strict network enviroments and recommended. The reason I'm putting up a VPN on my box, is that the network here at my workplace is mostly closed to only work related trafic. Which is both bogus and sad.
I haven't encountered any other errors so far, I've spent much time not to make any mistakes or overlook anything important when editing any config files. Needed to apt-get ufw, because oddly, it wasn't installed already. It went fine and all the ufw statuses are looking just fine.
Any help appreciated here.