Feb 20, '09 07:30:02AM • Contributed by: Anonymous
This process has been tested under Mac OS X 10.5.5 and Ubuntu Intrepid 64 bit, and it's written up in detail on this page on my site. Here's the executive summary version: Requirements:
- A UNIX system. (Sorry, Windows folks. I have neither the time nor patience to even try to set it up under Windows).
- A development environment (Xcode).
- A basic working knowledge of UNIX.
- The ability to follow instructions.
- libgpg-error [download]
- libgrcypt [download]
- OpenSSL libs - included with OS X
- TunTap (OS X/Darwin only)
- vpnc [download]
For greater detail on each of the following steps, see the full instructions on my site. If you've got Unix experience, though, this version should be enough to get you going:
- Download, compile (if necessary), and install libgpg-error, libgcrypt, vpnc, and TunTap.
- Start TunTap using the tun and tap scripts in the /Library/Startup Items folder.
- Copy and Convert the Cisco Profiles. For this example, we'll assume the profiles are installed in /etc/opt/cisco-vpnclient/Profiles, which is standard on OS X. Run these commands in Terminal:
$ sudo cp -R /etc/opt/cisco-vpnclient/Profiles ~ $ cd ~/Profiles $ curl -O http://www.gdanko.net/convert_profiles.sh $ sudo sh ~/Profiles/convert_profiles.sh - Download and install a simple launcher I wrote:
$ cd /usr/local/bin $ sudo curl -O http://www.gdanko.net/vpnc_launcher.txt $ sudo mv vpnc_launcher.txt vpnc_launcher.php $ sudo chmod 755 vpnc_launcher.php
Unix VPN Connection Utility (new and improved!)
Available VPN Servers:
[1] Bangalore
[2] Dallas
[3] NewYork
Please select a VPN to connect to: 3
Connecting to NewYork...
Enter username for vpn.newyork.foo.com: myname
Enter password for myname@vpn.newyork.foo.com: mypass
add net x.x.x.x: gateway x.x.x.x
add host x.x.x.x: gateway x.x.x.x
delete net default
add net default: gateway x.x.x.x
VPNC started in background (pid: 7557)...
bash-3.2$ vpnc-disconnect
Terminating vpnc daemon (pid: 7557)
That's it, we're done!
[robg adds: In testing this, I was able to download, compile, and install all the components, and convert my Cisco profiles. However, I wasn't able to successfully connect to Macworld's VPN. The problem is probably a configuration issue on my end with vpnc, but I haven't had time to delve into it yet.
In case the two required files on the linked site ever go away, I've mirrored them here on macosxhints: convert_profiles.sh • vpnc_launcher.txt.]
