Hi,
Every once in a while, the VPN client on my Asus router is killing my internet connection (cannot connect anywhere) and restarting it via the web interface restores the internet connection.
I want to write a cron script that checks internet connection every n minutes and restarts it, and as far as I can see killing /etc/openvpn/vpnclient1 process with ps & awk and restarting with:
/etc/openvpn/vpnclient1 --cd /etc/openvpn/client1 --config config.ovpn
works.
Is this safe to do? Is there a better way of doing this?
Thanks
Every once in a while, the VPN client on my Asus router is killing my internet connection (cannot connect anywhere) and restarting it via the web interface restores the internet connection.
I want to write a cron script that checks internet connection every n minutes and restarts it, and as far as I can see killing /etc/openvpn/vpnclient1 process with ps & awk and restarting with:
/etc/openvpn/vpnclient1 --cd /etc/openvpn/client1 --config config.ovpn
works.
Is this safe to do? Is there a better way of doing this?
Thanks