Could you please post the output of:
sudo systemctl status openvpn@openvpn -l
Be sure to redact any sensitive info.
Could you please post the output of:
sudo systemctl status openvpn@openvpn -l
Be sure to redact any sensitive info.
openvpn@openvpn.service - OpenVPN connection to openvpn
Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/openvpn@openvpn.service.d
└─50_unpriv.conf
Active: failed (Result: exit-code) since Mon 2018-10-01 14:21:17 UTC; 42s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 442 ExecStartPre=/usr/bin/sudo --non-interactive /usr/sbin/openvpn --rmtun --dev tun0 (code=exited, status=1/FAILURE)
Oct 01 14:21:16 host systemd[1]: Starting OpenVPN connection to openvpn…
Oct 01 14:21:17 host sudo[442]: sudo: a password is required
Oct 01 14:21:17 host systemd[1]: openvpn@openvpn.service: Control process exited, code=exited status=1
Oct 01 14:21:17 host systemd[1]: Failed to start OpenVPN connection to openvpn.
Oct 01 14:21:17 host systemd[1]: openvpn@openvpn.service: Unit entered failed state.
Oct 01 14:21:17 host systemd[1]: openvpn@openvpn.service: Failed with result ‘exit-code’.
After this, i did it:
sudo cp /lib/systemd/system/openvpn@.service /lib/systemd/system/openvpn@openvpn.service
sudo systemctl enable openvpn@openvpn
sudo systemctl start openvpn@openvpn
And see:
Job for openvpn@openvpn.service failed because the control process exited with error code. See "systemctl status openvpn@openvpn.service" and "journalctl -xe" for details.
sudo systemctl status openvpn@openvpn -l
● openvpn@openvpn.service - OpenVPN connection to openvpn
Loaded: loaded (/lib/systemd/system/openvpn@openvpn.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/openvpn@openvpn.service.d
└─50_unpriv.conf
Active: failed (Result: exit-code) since Mon 2018-10-01 22:49:33 UTC; 23s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 2365 ExecStartPre=/usr/bin/sudo --non-interactive /usr/sbin/openvpn --rmtun --dev tun0 (code=exited, status=1/FAILURE)Oct 01 22:49:33 host systemd[1]: Starting OpenVPN connection to openvpn…
Oct 01 22:49:33 host systemd[1]: openvpn@openvpn.service: Control process exited, code=exited status=1
Oct 01 22:49:33 host systemd[1]: Failed to start OpenVPN connection to openvpn.
Oct 01 22:49:33 host systemd[1]: openvpn@openvpn.service: Unit entered failed state.
Oct 01 22:49:33 host systemd[1]: openvpn@openvpn.service: Failed with result ‘exit-code’.
Hi benev
Your configuration file has dev tun
and /usr/sbin/openvm
uses --dev tun0
.
Maybe use tun0
in openvpn.conf
?
Another possibility is file ownership Or maybe OpenVPN is not being run under the correct user? Try looking through the Tunnels wiki to see what user
to run OpenVPN under i.e. user tunnel
maybe?
It’s work! Thank you.
I just skip in guide Firewall setup, did only tunnel user, changed some things in .conf and it work as im need!