What's new

Command line control of VPN

  • 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!

spoon72

New Around Here
I wish to control the state of the VPN client using the command line via ssh. I want to be able to get and set the VPN client (I have only 1 configured) on or off via ssh. What is the parameter to use to turn on / off the VPN client to use with nvram?
 
service stop_vpnclient(x)
service start_vpnclient(x)
 
The VPN clients are handled differently than other services. There's no on/off nvram variable.

To check whether VPN client #1 is running:
pidof vpnclient1
or
nvram get vpn_client1_state

To start:
service start_vpnclient1

To stop:
service stop_vpnclient1
 

Latest threads

Sign Up For SNBForums Daily Digest

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