I am using centos7.4.1708 and openvpn 2.4.4-1 both server and client.
I have successful tested the server and client using the manual commands openvpn --config server.conf and openvpn --config client.conf
Then, I have started the server using
Code: Select all
#systemctl start openvpn@server.service
#systemctl -f enable openvpn@server.service
Everything was fine.
The problem now is with the client when i tried to do:
Code: Select all
#systemctl start openvpn@server.service
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.
after the journalctl -xe:
...
Options error: in [CMD-LINE]:1: Error opening configuration file: server.conf
...
The same result if I do:
#systemctl start openvpn-client@server.service
I have disabled firewalld and selinux, but didnt solve the problem.
I put the client files (ca.crt, cliente1-openvpn.crt, cliente1-openvpn.key, ta.key and client.conf) inside the client directory under /etc/openvpn/client.
Any help will be very useful.
Thanks in advance.