There is also an open source command line tool written in Objective-C
which might help you: https://github.com/halo/macosvpn It pretty much
simulates using the Systems Preferences Network pane, only using the
native SystemPreferences API. It's also f...