Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Delete excess VPN connection from Internet Connect Internet
OS X allows you to create VPN connections -- as many as you like -- through Internet Connect, but it won't let you remove unused ones. To do this, you need to manually erase them from /Library -> Preferences -> SystemConfiguration -> preferences.plist by either editing that file with vi or Property List Editor (the latter is much safer and faster, but requires the Developer Tools / XCode package to be installed). Say you want to get rid of VPN (PPTP) 2:
  1. Open preferences.plist in Property List Editor
  2. Expand Root, then expand NetworkServices
  3. Expand each of the hexidecimal profiles and try to find your target (e.g. VPN (PPTP) 2)
  4. Once it is identified, delete the parent hex profile
  5. Save it (make sure to have a backup copy of the original file just in case)
This has been tested on 10.3.4. I used the Property List Editor from my 10.2.8 without any problems. Note that in Jaguar (10.2.x), the plist file is under /private -> var -> db -> SystemConfiguration -> preferences.xml.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[19,751 views]  

Delete excess VPN connection from Internet Connect | 9 comments | Create New Account
Click here to return to the 'Delete excess VPN connection from Internet Connect' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Delete excess VPN connection from Internet Connect
Authored by: Graff on Jun 01, '04 11:15:38AM

You can delete them through the GUI by going to:
System Preferences->Network

Click on the Show popup menu and choose:
Network Port Configurations

Then click on the VPN connection you want to remove and hit the Delete button



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: Graff on Jun 01, '04 11:19:53AM

Just to clarify - that's the System Preferences, not the preferences for Internet Connect. For those who don't know, you can normally find it in the Apple menu.

- Graff



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: stingerman on Jun 01, '04 01:55:28PM

Yep, Graff's solution is the way to go. Once you hit the Apply Now button the VPN is deleted permanently. No need to go into the plist at all...



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: gcole on Jun 01, '04 01:02:27PM
Actually, they CAN be deleted from with the Internet Connect GUI.

  1. From Internet Connect, click the VPN icon in the toolbar.
  2. From the Configuration dropdown list, select Edit Configurations
  3. In the resulting dialog box, select the config name to be deleted from the list at left, then click the minus (-) icon at the bottom of the list



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: Ganymede on Jun 02, '04 04:05:24AM

Having just set up a new VPN address, as my company changed carriers and circuits, I was quite interested to see this thread. I examined each of the methods mentioned here.

I tried gcole's suggestion, using Internet Connect: select the VPN icon in the toolbar, then the "Edit Configurations" drop-down list. Upon clicking the minus icon, all the configuration info was removed except the name, and the configuration remained in the configuration list at the left. Upon exiting, the icon was still in the toolbar; nothing I tried using this approach would remove it, nor even successfully rename it (the name I entered for the configuration shows up only in the configuration drop-down, and the icon retained its former name - very unfortunate, from my perspective).

I used the Property List Editor to examine my SystemConfiguration preferences (Panther). Definitely not for the faint-hearted! This extensive xml file has many entries and sub-entries, often with similar or redundant-appearing names. My two VPN services have very similar, and slightly misleading names: "VPN (PPTP)" and "Echo VPN (PPTP)". I was unfamiliar with the protocols and conventions; I am just learning about XML and Unix. However I am a seasoned programmer and know firsthand the consequences of hasty actions, and so left well enough alone. (A hint: click the "DUMP" button to see the source xml in the lower pane; that is almost certain to help you find the target you're looking for).

I then examined the help file for Internet Connect - the single, slight page covering VPN has barely a paragraph or two, but it does include directions for removing VPN configurations - exactly the instructions given above by Graff. Even when I finally removed the old config using this method, the names and many dialog boxes one can review on the way were quite confusing. Although this is obviously the method Apple intends people to use (the "right way") it is poorly documented.

Going to the Network System Preferences panel to do maintenance on configurations invoked from a separate application makes some sense to IT professionals (especially those of us warped by windoze), it is certainly NOT intuitive to "the rest of us"... maybe Apple thinks that only windoze-warped IT professionals would use VPN anyway! (I'm still trying to figure out SSH...)

Ganymede



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: chienr on Jun 04, '04 01:44:17AM
Thanks for pointing out the right way, it's definitely easier than editing the plist, I agree. It's just that one would expect Apple to make it more intuitive. I've filed a bug with Apple on this, let's see if it'll improve in the next versions.

[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: pgarrison on Oct 07, '04 02:10:57AM

I've deleted the VPN connections using Network System Preferences, so I have no more VPN configurations. Does anyone know how to remove the VPN menu from the top menu bar? Don't need it, so it's just cluttering things up.



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: corourke on Dec 01, '06 06:39:42PM

I had an extra dial-up networking entry that could not be removed by any other means than editing the plist file. It did not show up in Network Settings, etc. Note that I had to search for and delete all instances of the named entry.



[ Reply to This | # ]
Delete excess VPN connection from Internet Connect
Authored by: KentR on Nov 05, '08 05:04:59PM

(10.4) If you drag the icon out of the top of the window, it will delete the connection and the associated configurations.



[ Reply to This | # ]