Have to Manually Restart Daemon Almost Every Time Pi Boot
Posted: Sat Feb 15, 2020 6:32 pm
I have a Raspberry Pi Model B v1.2 running Raspbian Jessie 8.0 on which I have installed OpenVPN to run a PIA VPN. My setup works fine, but... when I first apply power to the Pi, everything boots up and you can check the running processes [ps -A] and see that OVPN is running. If I try to run [curl ifconfig.me] (or do anything internet related), however, I often have to manually restart OpenVPN with [sudo /etc/init.d/openvpn restart] before I can connect to the internet. (I have ufw running that blocks all traffic not through the VPN.) Once I have restarted the daemon, everything is fine until/unless the Pi reboots again. Occasionally, the net access willk work without having to restart OVPN, but more times than not, that is not the case.
Is there a reason that this might be happening and is there a way that I can fix this? I can provide any logs you need if you just tell me what you need. Thanks.
Is there a reason that this might be happening and is there a way that I can fix this? I can provide any logs you need if you just tell me what you need. Thanks.