Opening the VPN dialog from the command line
OS X has a built-in VPN client, the process name is "racoon". We have to re-connect often at work, so this script pops up the UI dialog from the command line. The alias first kills the racoon process, since it may be in a bad state.
cp config.sample.yml config.yml
- From the OS X Network preferences, supply the name of your VPN network name in
chmod +x generate.rband
./generate.rb. This should generate a
openvpn.applescriptfile with your VPN network name in it.
- Copy the contents of
~/.bash_profileand source it (e.g.
- Now you should be able to run:
The plan is to add more applescripts. Do you have any applescripts that are time savers?