I recently asked a question Auto connect vpn upon login/boot which got answered well using apple script .
I want to extend this question to the following problem:
The vpn connection should be activated automatically when not connected to my home wifi. (e.g. i'm surfing in Starbucks) The default state would be vpn activated but it includes an "opt-out" for my home wifi.