I often find myself connecting to VPN networks because I attend a large university. Every time I open my laptop I must log on to the VPN in order to access the Internet. Not that this is a tedious task it's just annoying. So I thought write an applescript to automate the task. Right before I attempted to write the script to connect to my VPN if and only if a specific wifi network is joined. I came across this little application PearportVPN. It does all the work for you and even
disconnects from the VPN before putting your mac to sleep. That feature is great otherwise you would receive a time-out message upon opening your mac again. Now don't trust me check it out for yourself.