Basically my problem is that I need to write a script that automatically creates a VPN service in Mac OS X Snow Leopard, which can be used on several machines to speed up the process, and not to use system settings at the same time. This is especially necessary for working on 10.6. * Because a VPN needs to use the Cisco IPSec protocol, which is only built into Snow Leopard. I'm not sure if this is possible, but I thought it could be done using terminal commands or some form of shell scripting. I really don't know where to start. When I looked at the system for possible starting points, I found that if you opened the next file with the Property List Editor, it had all the network services.
/Library/Preferences/SystemConfiguration/preferences.plist
I'm not sure if this just shows the services, or if it actually controls them, which makes it possible to add another service by modifying this .plist file. So basically I ask: how to add a network service with certain settings through the terminal or scripts?
source
share