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!

Batch file to turn on N66U openvpn client.

  • Thread starter Thread starter Deleted member 27741
  • Start date Start date
D

Deleted member 27741

Guest
Although it is useful, I do not always want the N66U's openvpn client turned on. Logging into the router to turn it on/off seems cumbersome. Is there a way to set up a batch file (windows) to turn on/off the openvpn client on the N66U?

Having one batch file that would detect the current state and then switch it would be coolest, but two batch files (one for on and off) would be great too.
 
Ok, I have this figured out. A batch file can be created to run
putty.exe username@serverlocation -pw password -m filewithcommands.txt

My batch file looks like this, keep in mind my putty installation is at d:\putty, so you may need to modify according to the location of your putty installation:

d:
cd putty
putty.exe yourusername@yourserverlocationIusemyddns -pw yourpassword -m c:\your\location\textfilewithcommands.txt

Note there is no carriage return after -m above, it is all on the same line.
Command for the file to start the vpn client 1 is:
service start_vpnclient1
To stop:
service stop_vpnclient1
 
Last edited by a moderator:

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