Command line control of VPN


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?


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


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