Sidestep

Sidestep is a neat little utility that will automatically activate a VPN or connection to secure your traffic when it detects you’re on an unsecured Wi-Fi network:

It also sets the global proxy to send all your traffic through