NethServer Version: 7.8.2003
Module: OpenVPN RoadWarrior
Hello, I installed a clean NethServer in a virtual environment at a client’s network, and I wanted to test the access through OpenVPN. This is what I did:
installed VPN app
enabled OpenVPN RoadWarrior with user, password and certificate authentication
added a system user
And then, I saw that there is a notification in Services that says:
Please, review the following settings: * openvpn@host-to-net : The service is either not running or not enabled
From the chart, I see that service is not running. Status is showing me:
- openvpn@host-to-netservice - OpenVPN Robust And Highly Flexible Tunneling Application On host/to/net
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/openvpn@.service.d
`-host-to-net.conf
Active: failed (Result: exit-code) since Tue 2020-05-26 18:01:20 -03; 24min ago
Process: 4823 ExecStopPost=/etc/openvpn/openvpn-shutdown (code=exited, status=0/SUCCESS)
Process: 4821 ExecStart=/usr/sbin/openvpn --cd /etc/openvpn/ --config %i.conf (code=exited, status=1/FAILURE)
Process: 4810 ExecStartPre=/etc/openvpn/openvpn-startup (code=exited, status=0/SUCCESS)
Main PID: 4821 (code=exited, status=1/FAILURE)
May 26 18:01:19 nshost.clientsnet systemd[1]: Starting OpenVPN Robust And Highly Flexible Tunneling Application On host/to/net…
May 26 18:01:20 nshost.clientsnet openvpn-startup[4810]: Tue May 26 18:01:20 2020 TUN/TAP device tap0 opened
May 26 18:01:20 nshost.clientsnet openvpn-startup[4810]: Tue May 26 18:01:20 2020 Persist state set to: ON
May 26 18:01:20 nshost.clientsnet systemd[1]: openvpn@host-to-net.service: main process exited, code=exited, status=1/FAILURE
May 26 18:01:20 nshost.clientsnet openvpn-shutdown[4823]: Tue May 26 18:01:20 2020 TUN/TAP device tap0 opened
May 26 18:01:20 nshost.clientsnet openvpn-shutdown[4823]: Tue May 26 18:01:20 2020 Persist state set to: OFF
May 26 18:01:20 nshost.clientsnet systemd[1]: Failed to start OpenVPN Robust And Highly Flexible Tunneling Application On host/to/net.
May 26 18:01:20 nshost.clientsnet systemd[1]: Unit openvpn@host-to-net.service entered failed state.
May 26 18:01:20 nshost.clientsnet systemd[1]: openvpn@host-to-net.service failed.
If I try to start it, it shows:
Error
dns.service_action_error
The following command has failed:
system-services/update
Unfortunately we couldn’t catch the exact error. If you want to help, please click on the button below to copy the failed command to the clipboard, paste it into the Terminal and submit command output to the developers.
The “command” and output of that:
[root@nshost ~]# echo ‘{“action”:“start”,“name”:“openvpn@host-to-net”}’ | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-services/update | jq
{
“id”: “1590526880”,
“type”: “EventFailed”,
“message”: “Action failed”
}
[root@nshost ~]#
Any suggestion? Already rebooted, if that’s what you have in mind.
I just started with this distro, and we are trying to use it as a DC with MX and FS roles, witch are not yet implemented. I’ll probably be around here and there asking some questions…
Thank you in advanced,