What's new

Command to check vpn client status ?

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

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

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