I installed Ubuntu 9.10 on my computer, and very shortly after realized that I cannot connect to my VPN connection at work. The Cisco VPN client apparently has some issues installing on Kernel 2.6.31, for amd64 (although I’ve seen plenty say it doesn’t work on x86 either).
So here is what I found (and did) to make it work…
Download the vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
Untar the files
tar zxf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
Change vpnclient directory from the untar
Run the first patch
patch < ../vpnclient-linux-4.8.02-64bit.patch
Run the greater or equal (ge) 2.6.31 patch
patch < ../vpnclient-linux-4.8.02-64bit.ge.2.6.31.patch
Update netdevice.h and change ‘const struct net_device_ops *netdev_ops;’ to ‘struct net_device_ops *netdev_ops;’ as described at this link
sudo vi -c ‘:750’ /usr/src/linux-headers-`uname -r`/include/linux/netdevice.h
Install the vpn client
Once you have completed the install, you will need to start the vpn service before you can connect.
/etc/init.d/vpnclient init start
You will then need to configure your PCF file for the necessary connection details. The files can be found in /etc/opt/cisco-vpnclient/Profiles/
I would suggest copying the sample.pcf and editing the copy for your connection.
Save it to the same directory, I had some issues trying to tell the vpnclient to use a pcf in another folder.
To fire up your vpn
sudo vpnclient connect <pcf file>
Don’t put the .pcf extention on the file name, you’ll get an error that it couldn’t load.
Credit for the knowledge behind these instructions goes to the guys in the tuxx-home.at support forum! http://forum.tuxx-home.at/viewforum.php?f=15
4/11/2010 – Changed formatting to make more readable.