OpenVPN - Server Not starting
Posted: Sun Jul 07, 2019 3:19 pm
I have two virtual machines one for the Certificates and OpenVPN on the other.
Used the a digital ocean guide, with every stop being correctly followed
I have gotten to the point of
and get the following error
Within the vars/log/syslog
This is the relevant section in my server.conf
Files within the /etc/openvpn/ folder
I'm pulling my hair out....
I have tried adding the full paths in the server.conf
But still nothing..... HELP PLEASE
Used the a digital ocean guide, with every stop being correctly followed
I have gotten to the point of
Code: Select all
sudo systemctl start openvpn@server
Code: Select all
Job for openvpn@server.service failed because the control process exited with error code.
See "systemctl status openvpn@server.service" and "journalctl -xe" for details.
Code: Select all
Jul 7 16:15:55 VPN-Server systemd[1]: openvpn@server.service: Main process exited, code=exited, status=1/FAILURE
Jul 7 16:15:55 VPN-Server systemd[1]: openvpn@server.service: Failed with result 'exit-code'.
Jul 7 16:15:55 VPN-Server systemd[1]: Failed to start OpenVPN connection to server.
Jul 7 16:16:01 VPN-Server systemd[1]: openvpn@server.service: Service hold-off time over, scheduling restart.
Jul 7 16:16:01 VPN-Server systemd[1]: openvpn@server.service: Scheduled restart job, restart counter is at 812.
Jul 7 16:16:01 VPN-Server systemd[1]: Stopped OpenVPN connection to server.
Jul 7 16:16:01 VPN-Server systemd[1]: Starting OpenVPN connection to server...
Jul 7 16:16:01 VPN-Server ovpn-server[3820]: WARNING: cannot stat file 'server.key': No such file or directory (errno=2)
Jul 7 16:16:01 VPN-Server ovpn-server[3820]: Options error: --key fails with 'server.key': No such file or directory (errno=2)
Jul 7 16:16:01 VPN-Server ovpn-server[3820]: Options error: Please correct these errors.
Jul 7 16:16:01 VPN-Server ovpn-server[3820]: Use --help for more information.
Jul 7 16:16:01 VPN-Server systemd[1]: openvpn@server.service: Main process exited, code=exited, status=1/FAILURE
Jul 7 16:16:01 VPN-Server systemd[1]: openvpn@server.service: Failed with result 'exit-code'.
Jul 7 16:16:01 VPN-Server systemd[1]: Failed to start OpenVPN connection to server.
Jul 7 16:16:06 VPN-Server systemd[1]: openvpn@server.service: Service hold-off time over, scheduling restart.
Jul 7 16:16:06 VPN-Server systemd[1]: openvpn@server.service: Scheduled restart job, restart counter is at 813.
Jul 7 16:16:06 VPN-Server systemd[1]: Stopped OpenVPN connection to server.
Jul 7 16:16:06 VPN-Server systemd[1]: Starting OpenVPN connection to server...
Jul 7 16:16:06 VPN-Server ovpn-server[3823]: WARNING: cannot stat file 'server.key': No such file or directory (errno=2)
Jul 7 16:16:06 VPN-Server ovpn-server[3823]: Options error: --key fails with 'server.key': No such file or directory (errno=2)
Jul 7 16:16:06 VPN-Server ovpn-server[3823]: Options error: Please correct these errors.
Jul 7 16:16:06 VPN-Server ovpn-server[3823]: Use --help for more information.
Jul 7 16:16:06 VPN-Server systemd[1]: openvpn@server.service: Main process exited, code=exited, status=1/FAILURE
Jul 7 16:16:06 VPN-Server systemd[1]: openvpn@server.service: Failed with result 'exit-code'.
Jul 7 16:16:06 VPN-Server systemd[1]: Failed to start OpenVPN connection to server.
This is the relevant section in my server.conf
Code: Select all
# SSL/TLS root certificate (ca), certificate
# (cert), and private key (key). Each client
# and the server must have their own cert and
# key file. The server and all clients will
# use the same ca file.
#
# See the "easy-rsa" directory for a series
# of scripts for generating RSA certificates
# and private keys. Remember to use
# a unique Common Name for the server
# and each of the client certificates.
#
# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
Code: Select all
ca.crt client dh.pem server server.conf server.crt ta.key update-resolv-conf
I have tried adding the full paths in the server.conf
Code: Select all
# SSL/TLS root certificate (ca), certificate
# (cert), and private key (key). Each client
# and the server must have their own cert and
# key file. The server and all clients will
# use the same ca file.
#
# See the "easy-rsa" directory for a series
# of scripts for generating RSA certificates
# and private keys. Remember to use
# a unique Common Name for the server
# and each of the client certificates.
#
# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret