Disable auto connection with certain wifi network

35 views
Skip to first unread message

vov...@gmail.com

unread,
Mar 24, 2015, 2:30:43 PM3/24/15
to tunnelbli...@googlegroups.com
Hi
Thanks for a cool program!
Is it possible to make an option that at a certain title WiFi network tunnel was not raised?
For example you come home and the laptop from the comfort of sleep is not connected to the VPN.
Thank U

jkbull...gmail.com

unread,
Mar 24, 2015, 10:04:50 PM3/24/15
to tunnelbli...@googlegroups.com, vov...@gmail.com
This seems of very limited use. Consider creating a "pre-connect.sh" script that returns an error if the network was not as expected. I don't know how to detect that, but the scripting would be easy – see Using Scripts.

jkbull...gmail.com

unread,
Mar 24, 2015, 10:19:14 PM3/24/15
to tunnelbli...@googlegroups.com, vov...@gmail.com
You can get a list of WiFi networks that are currently available with the command

"/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" -s

And then grep the output for your network's name (assuming it is a unique name, and not "NETGEAR" or something like that.

If the result is empty, exit from the script. If the result isn't empty, "exit 1" to indicate an error. Tunnelblick will abort the connection attempt.

Reply all
Reply to author
Forward
0 new messages