Hi,
I have a couple of new machines with Fedora 28 installed that I'm trying to configure to connect to our VPN server. I can get the clients to connect successfully by manually entering
openvpn --config client.conf, but I can't get the connection to start on boot.
I've spent some time troubleshooting and researching, but I've come up empty on a solution.
Some quick notes to eliminate certain troubleshooting:
- The client.conf file is located in /etc/openvpn
- The client.conf file permissions are set to 400
- The client certificates are located in /etc/openvpn/client
After some research I found that I may need to specify the client file when starting the service, so I tried this:
systemctl start openvpn-client@client
and I receive the following:
Job for
openvpn-client@client.service failed because the control process exited with error code.
See "systemctl status
openvpn-client@client.service" and "journalctl -xe" for details.
systemctl status output:
รข
openvpn-client@client.service - OpenVPN tunnel for client
Loaded: loaded (/usr/lib/systemd/system/openvpn-client@.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-10-17 12:34:36 NDT; 11s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 25332 ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config client.conf (code=exited, status=1/FAILURE)
Main PID: 25332 (code=exited, status=1/FAILURE)
Oct 17 12:34:36 ava-silvaco systemd[1]: Starting OpenVPN tunnel for client...
Oct 17 12:34:36 ava-silvaco openvpn[25332]: Options error: In [CMD-LINE]:1: Error opening configuration file: client.conf
Oct 17 12:34:36 ava-silvaco openvpn[25332]: Use --help for more information.
Oct 17 12:34:36 ava-silvaco systemd[1]:
openvpn-client@client.service: Main process exited, code=exited, status=1/FAILURE
Oct 17 12:34:36 ava-silvaco systemd[1]:
openvpn-client@client.service: Failed with result 'exit-code'.
Oct 17 12:34:36 ava-silvaco systemd[1]: Failed to start OpenVPN tunnel for client.
Journalctl -xe output:
-- Subject: Unit
openvpn-client@client.service has failed
-- Defined-By: systemd
-- Support:
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit
openvpn-client@client.service has failed.
--
-- The result is RESULT.
Oct 17 12:34:36 ava-silvaco audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=openvpn-client@client comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Any help or suggestions anyone can offer with this would be great!
Thanks.