kevinlekiller
Occasional Visitor
So every 2 days or so my VPN times out and attempts to reconnect, then it just tries and tries to reconnect endlessly every 5 seconds without success until I manually click the Off button in service state and click it back to On.
When this happens, I have no internet for hours, as I'm usually out or sleeping, and others are using the connection.
So I'm wondering if it's possible to stop and start the VPN from CLI the same way as the On/Off service state buttons do in the GUI, I'd have a cron job periodically check the syslog for openvpn time outs and stop the service and start it back.
Thanks.
Edit: So I'm thinking of copying /tmp/etc/openvpn/client1/config.ovpn to /jffs and using ps/grep to kill the /etc/openvpn/vpnclient1 pid then restart it using /jffs/config.ovpn
I'll have a try at that later after and report back.
When this happens, I have no internet for hours, as I'm usually out or sleeping, and others are using the connection.
So I'm wondering if it's possible to stop and start the VPN from CLI the same way as the On/Off service state buttons do in the GUI, I'd have a cron job periodically check the syslog for openvpn time outs and stop the service and start it back.
Thanks.
Edit: So I'm thinking of copying /tmp/etc/openvpn/client1/config.ovpn to /jffs and using ps/grep to kill the /etc/openvpn/vpnclient1 pid then restart it using /jffs/config.ovpn
I'll have a try at that later after and report back.
Last edited: