I have installed DietPi on my Raspberry Pi because I want a very minimal system, and then I've followed this tutorial:
https://gist.github.com/superjamie/ac55b6d2c080582a3e64
Unfortunately it does not seem to work: I can manually start a VPN connection with the command:
Code: Select all
openvpn --config /etc/openvpn/config.conf
I can't make it start automatically as a service, and most of all, as soon as I get at the "Setup Routing and NAT" and "VPN Kill Switch" nothing works anymore.
After I reboot, the VPN connection won't be established, and it exits.
Here are a couple of logs:
Code: Select all
root@DietPi:~# systemctl status openvpn@de77.nordvpn.com.udp1194
● openvpn@de77.nordvpn.com.udp1194.service - OpenVPN connection to de77.nordvpn.com.udp1194
Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-08-31 15:46:22 CEST; 6min ago
Process: 452 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf (code=exited, status=1/FAILURE)
Aug 31 15:46:22 DietPi systemd[1]: openvpn@de77.nordvpn.com.udp1194.service: control process exited, code=exited status=1
Aug 31 15:46:22 DietPi systemd[1]: Failed to start OpenVPN connection to de77.nordvpn.com.udp1194.
Aug 31 15:46:22 DietPi systemd[1]: Unit openvpn@de77.nordvpn.com.udp1194.service entered failed state.
Code: Select all
root@DietPi:~# journalctl -u openvpn@de77.nordvpn.com.udp1194
-- Logs begin at Thu 2017-08-31 15:46:12 CEST, end at Thu 2017-08-31 15:47:35 CEST. --
Aug 31 15:46:21 DietPi systemd[1]: Starting OpenVPN connection to de77.nordvpn.com.udp1194...
Aug 31 15:46:22 DietPi systemd[1]: openvpn@de77.nordvpn.com.udp1194.service: control process exited, code=exited status=1
Aug 31 15:46:22 DietPi systemd[1]: Failed to start OpenVPN connection to de77.nordvpn.com.udp1194.
Aug 31 15:46:22 DietPi systemd[1]: Unit openvpn@de77.nordvpn.com.udp1194.service entered failed state.
Here is something that might be useful... after following the "Setup Routing and NAT" and "VPN Kill Switch" sections, it seems like the pi is not able to establish a VPN connection anymore, as it outputs this error, even when I try to connect to the VPN manually:
Code: Select all
Thu Aug 31 17:19:52 2017 UDPv4 link remote: [AF_INET]185.143.230.230:1194
Thu Aug 31 17:19:52 2017 write UDPv4: Operation not permitted (code=1)
Thu Aug 31 17:19:54 2017 write UDPv4: Operation not permitted (code=1)
Thu Aug 31 17:19:58 2017 write UDPv4: Operation not permitted (code=1)
Thu Aug 31 17:20:06 2017 write UDPv4: Operation not permitted (code=1)
Any suggestions? Thanks