Command line control of VPN

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?
 

octopus

Part of the Furniture
service stop_vpnclient(x)
service start_vpnclient(x)
 

ColinTaylor

Part of the Furniture
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
 

Similar threads

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