What's new

Command to check vpn client status ?

federom

New Around Here
Hello everyone,

I am using a script that establishes a vpn tunnel using service start_vpnclient1 and i use stop_vpnclient1 in order to close it..

Is there any command to check the vpnclient1 status?

Thanks in advance !

Fede
 
Try

nvram get vpn_client1_state

a value of '0' should mean it's off. There are a couple of other states for 'on' (a non-zero value), but I think it's not always correct other than indicating it's not 'off' :)
 
Try

nvram get vpn_client1_state

a value of '0' should mean it's off. There are a couple of other states for 'on' (a non-zero value), but I think it's not always correct other than indicating it's not 'off' :)

Thanks John !! It works really well !!

Thanks again!
 

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