Tuesday, January 5, 2010

Cisco VPN Client to Ubuntu 9.10

Its usual that the vpnclient while installing for the first time on Linux, it gives few error messages reporting to the missing library files, header files. Here is the procedure of fixing them.


VPNClient requires kernel header files while getting installed. So, we need to download the patch and patch it with the old source code. Below are the few steps you need to follow to successfully install vpnclient on your linux machine. 


Ubuntu supposed to be my option here. 


 

Downloading Cisco VPN Client And Patch

  1. sudo wget http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
  2. sudo tar -zxvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
  3. cd vpnclient
  4. sudo wget http://lamnk.com/download/vpnclient-linux-2.6.31-final.diff
  5. sudo apt-get install patch
  6. patch < ./vpnclient-linux-2.6.31-final.diff
  7. sudo sed -i 's/const\ struct\ net_device_ops\ \*netdev_ops;/struct\ net_device_ops\ \*netdev_ops;/' `find /usr/src -name netdevice.h`

Starting Cisco VPN Client

  1. copy your .pcf file to /etc/opt/cisco-vpnclient/Profiles/.pcf
  2. sudo /etc/init.d/vpnclient_init start
  3. sudo vpnclient connect  
Just include only the filename with no extension in the previous step.