What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

OpenVPN script needed

Cake

Senior Member
Does anybody have a script they use for the OpenVPN client in their jffs dir for checking if the vpn is still working, and reconnecting if necessary.

I am thinking maybe like getting ip,
Code:
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
and check if it is between a certain range if it is exit, if not cycle the openvpn connection. I have found my VPN provider (PIA) sometimes gets disconnected, and I only find out when using google as the country local changes.

running 376.48_1
 
Have you tried setting the timers in the client configuration itself (in the Custom Configuration section)?

I added the following two lines

inactive 0
keepalive 5 60
 
Glad to be of assistance. I've been using PIA VPN for over a year now. Sometime the servers can get a little bogged down during peak hours, but overall I've been happy with them.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top