I was trying to install Cisco VPN in my Ubuntu 8.04 desktop yesterday. I was following my own guide and I got an error when I tried to install the VPN. Here is the command I issued and the error I got. (Everything that follows now were done in a terminal, which you can access from Application – Accessories – Terminal).
Quaddesktop:~/vpnclient$ sudo ./vpn_install
Cisco Systems VPN Client Version 4.8.01 (0640) Linux Installer
Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with its terms.Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes]
In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.Directory containing linux kernel source code [/lib/modules/2.6.24-16-generic/build]
* Binaries will be installed in “/usr/local/bin”.
* Modules will be installed in “/lib/modules/2.6.24-16-generic/CiscoVPN”.
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from “/lib/modules/2.6.24-16-generic/build” will be used to build the module.Is the above correct [y]
Making module
make -C /lib/modules/2.6.24-16-generic/build
SUBDIRS=/home/prabha/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic’
CC [M] /home/prabha/vpnclient/linuxcniapi.o
In file included from /home/prabha/vpnclient/Cniapi.h:15,
from /home/prabha/vpnclient/linuxcniapi.c:31:
/home/prabha/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/home/prabha/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/prabha/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
make: *** [default] Error 2
Failed to make module “cisco_ipsec.ko”.
Update July 21st 2008: Read Oleg comments (#42) below. Try that before proceeding to the steps below.
Note: For some users it worked only when they followed the steps listed by skramstad in the comments below (Comment #23) before they followed the steps below.
I googled and found out from Lamnk that I need to install a patch if I’m using Kernel version 2.6.24-xx. As you can see above, my Ubuntu installation was using 2.6.24-16-generic kernel. I then downloaded the patch by issuing
wget
http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff
I downloaded the patch into my vpnclient directory. I then tried to install the patch.
Quaddesktop:~/vpnclient$ patch < ./vpnclient-linux-2.6.24-final.diff
The program ‘patch’ is currently not installed. You can install it by typing:
sudo apt-get install patch
bash: patch: command not found
Obviously, I was missing the patch program. I then installed the patch program.
Quaddesktop:~/vpnclient$ sudo apt-get install patch
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
diff-doc
The following NEW packages will be installed: patch
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 95.6kB of archives.
After this operation, 193kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com hardy/main patch 2.5.9-4 [95.6kB]
Fetched 95.6kB in 12s (7422B/s)
Selecting previously deselected package patch.
(Reading database … 111891 files and directories currently installed.)
Unpacking patch (from …/patch_2.5.9-4_i386.deb) …
Setting up patch (2.5.9-4) …
Once the patch program was installed, I installed the VPN patch.
Quaddesktop:~/vpnclient$ patch < ./vpnclient-linux-2.6.24-final.diff
patching file GenDefs.h
patching file interceptor.c
The patch was done and I installed the VPN without any issue after that.
Quaddesktop:~/vpnclient$ sudo ./vpn_install
It worked flawlessly after that. For steps to follow after the installation, check my post about VPN installation.
Update: Whenever there is an update to the kernel, I had to reinstall VPN. I didn’t have to do the patching part, but I still have to go to vpnclient directory under my home directory and issue the command sudo ./vpn_install. I’m not sure if others have this problem.















I am using Cisco VPN client on Ubuntu 8.04 LTS. No firestarter installed.
Using BSNL broadband.
In Network | connections Automatic DHCp selected.
starting vpnclient I could authenticate into the server.
However afyer that when i try to ftp to the server (ftp xxx.xxx.xxx) it gives a message name or service not found.
Similarly in the browser (opera / firefox) I cannot open any site.
could any body suggest a solution
we use certificate manager for installing certificate in Cisco VPN client
How we install the certifcates in VPNC
[...] note: Read this post before you continue, if you have all the latest kernel updates in Hardy [...]
I did what skramstad suggested, on blind faith (albeit he should have said cisco_skbuff_offset.patch, and even though when I got to the directory to get what the real name was, I was sorely tempted to use instead the 4.8.01.patch instead of the 2.6.24.final.diff.
At any rate, on my Acer netbook running Ibex 2.6.17-24-generic, only skramstead’s method worked. Just to be cautious, I didn’t fix the CFLAGS until I had applied both patches. The first seems to let you compile cisco_ipsec.ko and the 2nd, Interceptor.
after the fact i sandboxed it and tried the 4.802 and 4.8.01 and neither work, they will both fix the CFLAGS, which is easy to do by hand reliably, but are incompatible with cisco_skbuff_offset.patch, you can apply either but not both.
Thanks for the updates Marion.
Have you tried OpenVPN? I just got through setting it up on my network.
It works really well. Setup can be a little hairy,
but I found a quickstart tutorial on the web and got everything squared away in about an hour.
It also has a lot of functionality (complexity) if you need to go down that road.
Thanks for the information! My vpn
no i didnt get any error messages, and i’ve tried it twice now, plus i can’t find the folder it supposedly installed too. Like i said im fairly new to Ubuntu and the linux OS’s in general but if i cant make this work i cant get internet on campus for my classes,
which is a big time bummer.
If the installation went through, then that directory should be there. Did you install the patch? Did you try comment number 42? If you tried all, then I’m not sure why it’s not working. Try Ubuntuforums.org.