How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit

UPDATE: A new client for linux (4.8.02.0030) is out. You no longer need the patch for 2.6.24+ kernel (vpnclient-linux-2.6.24-final.diff). However a patch for 64 bit systems is still required and the CFLAGS variable in Makefile must be changed to EXTRA_CFLAGS.

I assume that you have the latest version 4.8.01.0640 and the required packages for compiling.

If you install the original Cisco VPN client on Hardy you will receive the following error:

make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/lamnk/src/vpn/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic’
scripts/Makefile.build:46: *** CFLAGS was changed in “/home/lamnk/src/vpn/vpnclient/Makefile”. Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/home/lamnk/src/vpn/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
make: *** [default] Error 2

As those lines point out, you need to edit the Makefile file in the vpnclient folder and change CFLAGS to EXTRA_CFLAGS: Change the following line in Makefile

CFLAGS += -mcmodel=kernel -mno-red-zone

to

EXTRA_CFLAGS += -mcmodel=kernel -mno-red-zone

then apply the 2 patches for kernel 2.6.24 and for 64 bit:

vpnclient_folder$ wget lamnk.com/vpnclient-linux-2.6.24-final.diff

vpnclient_folder$ wget lamnk.com/cisco_skbuff_offset.patch

vpnclient_folder$ patch < ./vpnclient-linux-2.6.24-final.diff

vpnclient_folder$ patch < ./cisco_skbuff_offset.patch

vpnclient_folder$ ./vpn_install

If your system is 32 bit then you only need to patch the vpnclient-linux-2.6.24-final.diff file.

The patch for 64 bit system is from Stephen Frost and the patch for kernel 2.6.24 is from Alexander Griesser. Seriously Cisco should pay those guys some money … If these patches help you then please consider donate them.

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • StumbleUpon
  • Ma.gnolia
  • Reddit

Related posts:

Comments 2

  1. Androide 23 wrote:

    Thank you for this. The installation for me worked fine with your patches. However, when I try to run the vpnclient, I get this message:

    sudo vpnclient connect LinuxUsers
    Cisco Systems VPN Client Version 4.8.01 (0640)
    Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
    Client Type(s): Linux
    Running on: Linux 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64
    Config file directory: /etc/opt/cisco-vpnclient

    Initializing the VPN connection.
    Secure VPN Connection terminated locally by the Client
    Reason: Failed to establish a VPN connection.
    There are no new notification messages at this time.

    Do you have any idea of what I am doing wrong?
    Thank you!

    Posted 21 May 2008 at 12:06 am
  2. Androide 23 wrote:

    It worked now. My problem was the wireless connection. Vpn worked fine with your patches, after I fixed the wireless.
    Thank you!

    Posted 21 May 2008 at 9:49 pm

Trackbacks & Pingbacks 2

  1. From With kernel 2.6.24 you will need a patch to install Cisco VPN Client | L.A.M.N.K on 20 May 2008 at 10:19 pm

    [...] UPDATE: 64 bit systems are a bit more complicated, please see how to install Cisco VPN on Hardy Heron 8.04 64 bit [...]

  2. From Welcome To The Mind » Linux on the laptop - Ubuntu Hardy 64-bit on a Dell M1530 (continued) on 22 Jun 2008 at 3:47 am

    [...] like Stephen Frost and Alexander Griesser, the job was fairly simple. I followed the brief howto at lamnk.com to accomplish the task, and was up and running in no time. Fixing the eject button Unlike the rest [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *