Linux Cisco VPN Client on Intel for amd64 kernel 2.6.31

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

wget http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/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

Download vpnclient-linux-4.8.02-64bit.patch

wget http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-4.8.02-64bit.patch

Download vpnclient-linux-4.8.02-64bit.ge.2.6.31.patch

wget http://painfullscratch.nl/code/vpn/vpnclient-linux-4.8.02-64bit.ge.2.6.31.patch

Change vpnclient directory from the untar

cd vpnclient

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

sudo ./vpn_install

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.

Good luck!

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

Change Log:
4/11/2010 – Changed formatting to make more readable.

This entry was posted in System Administration, Ubuntu and tagged , , , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback.

1 Trackback

  1. By VPN over WLAN – draytek help on April 9, 2010 at 3:49 pm

    […] Linux Cisco VPN Client on Intel for amd64 kernel 2.6.31 « It Is … […]

Leave a Reply

%d bloggers like this: