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!

Starting and stopping the openvpn client 1 from CLI?

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.
 
Last edited:
service start_vpnclient1
 

Similar 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