Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Problem:
I want to be able to use selected connections in different Location(by Location I mean Location combo in Mac Network Preferences). I want to be able to find a connection in Network Preferences while in a different location, in current available location and ideally in new connection that I might create in future by default.
What do you suggest as the best possible approach?

My Machine:
MacBook Pro
OS: 10.6.4

I have 2 location that I created manually. "Home" and "Office", I have some some VPN connections that I want to use them in all location, currently in Home and Office but maybe later in Office2.

I can duplicate a location to contain same connections but I should apply needed changes manually after that for each location and also re-do it for any new changes in future.
Also I think I can create configurations for each connections and export and import them in different locations but seems not the best way.

share|improve this question
This is going to be a tricky one, but I can tell you that the proper name for a connection (like built-in ethernet, or VPN) is a Network Service. You mention importing and exporting these network services--this might be the best way. I can't find anything in the manpages for networksetup for achieving this. I have also noticed that VPN network services can only exist in one location at a time. – NReilingh Aug 7 '10 at 16:27
Strange! I suppose there's no ideal solution as you said and what you mentioned seems the only possible way. Thanks. – Amir Latifi Aug 7 '10 at 19:24
As NReilingh said, there exists no "easy" solution. Depending how much time you want to spend on this you could use the command line and AppleScript, but Cisco IPSec VPNs for example are very tricky to script. – Asmus Feb 4 '11 at 23:43
Investigate Apple Configurator. Its a tool for both IOS and OS X that among other things lets you pre-define network stacks and settings. Haven;t used it for that purpose, but it could be the trick. – dave_the_dev May 20 '15 at 21:09

You must log in to answer this question.

Browse other questions tagged .