I'm using OpenVPN as a daemon and when I lose the internet connection, OpenVPN waits for 2 minutes before it tries to restart each 5 seconds. This is as I want it to behave. However when the internet connection is up again, OpenVPN tries to reset tun0, fails and exits and since it's a daemon it won't try again but remain dead.
It fails with a 2 on IP address del because of permission denied.
I've tried to set chmod +s
to OpenVPN executable without any luck. I'm also using the NetworkManager to manage the network connections if this could be a problem.
It seems however as the actions succeed, since if I'm manually restarting OpenVPN it works.