I need to deploy a couple of remote computers and I need them to always connect to the VPN whenever there is internet connectivity. Is this possible? If so, how?
feedback
|
|
First, you need to set up locationchanger, a script that is launched whenever (possibly) the network settings have changed. I've been using a heavily modified version (no location detection, just show a Growl notification whenever anything is changed, i.e. in the section "do some stuff here that needs to happen after every network change") for over a year, and it's quite reliable. Sometimes it detects two changes in quick succession, but that's it. Since your needs are more along the defaults, it will probably work even better for you. Open AppleScript Editor, and paste the following code:
Replace Save as application, e.g. Then, edit the
If you don't want an icon to bounce in the Dock whenever you change something, you san save the AppleScript as script instead, and execute it from
This solution will require some experimentation on your part. The reason is obvious: Connecting or disconnecting a VPN is a change in the network configuration. So given what I wrote here, it's possible that you connect to a network, the script connects to the VPN, the VPN configuration change triggers the script again, and it disconnects. Of course, you can simply remove the line that says | |||
|
feedback
|