Sunday, June 10, 2007

Kicking cisco's vpn-client to the curb...

I have been working with Cisco's vpn client for about two years now. It is a nice product... if you never update your kernel!!!
Case in point; I use Ubuntu and recently upgraded to version 7.04 (Feisty Fawn). I was able to get Cisco's vpn-client working with the original kernel on version 7.04 via a diff patch, but last week a new kernel came down in the updates... and guess what stopped working?
Anyway, after asking Google for help and trying a couple of things, I ran into a blog that talked about converting my Cisco PCF files to work with vpnc. Well, 5 minutes later I was back in the VPN world again, connecting to my office without a single kernel module complaining!!!

So here are the steps I performed;


1. Install vpnc.
sudo apt-get install vpnc

2. Download the pcf2vpnc perl script.
wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc

3. Make the script executable.
chmod +x pcf2vpnc

4. Convert your .pcf files to work with vpnc.
./pcf2vpnc cisco.pcf > cisco.conf

5. Copy your new .conf files to /etc/vpnc.
sudo cp cisco.conf /etc/vpnc/

6. Connect using vpnc.
sudo vpnc-connect cisco

7. To disconnect your vpn tunnel.
sudo vpnc-disconnect


Good luck,

Mike



About Me