Tuesday, July 27, 2010

Cisco VPN Installation

The Cisco VPN module has been a bit of a sore point to get compiled and running. Here are some instructions I used under OpenSuSE 11.3 with kernel 2.6.34-12-desktop but it should work on other distributions too.

You are going to need three pieces of code, the VPN client, a 64 bit patch, and a patch to work with a 2.6.31+ kernel. I have
To start you will need three pieces of code:
So lets see what happens with just the base VPN client:
# tar -zxvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
# cd vpnclient
# ./vpn_install
Making module
make -C /lib/modules/2.6.34-12-desktop/build SUBDIRS=/home/mike/cisco/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/desktop/. modules
/usr/src/linux-2.6.34-12/scripts/Makefile.build:49: *** CFLAGS was changed in "/home/mike/cisco/vpnclient/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[3]: *** [_module_/home/mike/cisco/vpnclient] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
Not so good, lets install the 64 bit patch and see what happens:
# patch < ../vpnclient-linux-4.8.02-64bit.patch
patching file Makefile
patching file frag.c
patching file interceptor.c
patching file linuxcniapi.c
patching file linuxkernelapi.c
# ./vpn_install
Making module
make -C /lib/modules/2.6.34-12-desktop/build SUBDIRS=/home/mike/cisco/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/desktop/. modules
  CC [M]  /home/mike/cisco/vpnclient/linuxcniapi.o
/home/mike/cisco/vpnclient/linuxcniapi.c:14:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[4]: *** [/home/mike/cisco/vpnclient/linuxcniapi.o] Error 1
make[3]: *** [_module_/home/mike/cisco/vpnclient] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
Now we have a strange error message about a missing autoconf.h file. To fix this we need to know what kernel we are running by using uname. In my case it is 2.6.34-12-desktop. It is the desktop portion that is important as under /usr/src/linux-2.6.34-12-obj/x86_64 there are a few directories, default, desktop, and xen. You need to make sure you are working with the correct one. To get around the error just touch an empty file:
# touch /usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/linux/autoconf.h
# ./vpn_install
Making module
make -C /lib/modules/2.6.34-12-desktop/build SUBDIRS=/home/mike/cisco/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/desktop/. modules
  CC [M]  /home/mike/cisco/vpnclient/linuxcniapi.o
  CC [M]  /home/mike/cisco/vpnclient/frag.o
  CC [M]  /home/mike/cisco/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/mike/cisco/vpnclient/interceptor.o
/home/mike/cisco/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/mike/cisco/vpnclient/interceptor.c:132:8: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/mike/cisco/vpnclient/interceptor.c:133:8: error: ‘struct net_device’ has no member named ‘get_stats’
/home/mike/cisco/vpnclient/interceptor.c:134:8: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/mike/cisco/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/mike/cisco/vpnclient/interceptor.c:271:33: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/mike/cisco/vpnclient/interceptor.c:272:8: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/mike/cisco/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/mike/cisco/vpnclient/interceptor.c:294:12: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[4]: *** [/home/mike/cisco/vpnclient/interceptor.o] Error 1
make[3]: *** [_module_/home/mike/cisco/vpnclient] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
Got rid of that autoconf.h message but now we have an interceptor problem. The 2.6.31 patch will take care of that for us.
# patch < ../vpnclient-linux-2.6.31-final.diff
# ./vpn_install
Making module
make -C /lib/modules/2.6.34-12-desktop/build SUBDIRS=/home/mike/cisco/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/desktop/. modules
  CC [M]  /home/mike/cisco/vpnclient/interceptor.o
/home/mike/cisco/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/mike/cisco/vpnclient/interceptor.c:284:5: error: assignment of read-only location ‘*dev->netdev_ops’
/home/mike/cisco/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/mike/cisco/vpnclient/interceptor.c:311:9: error: assignment of read-only location ‘*dev->netdev_ops’
make[4]: *** [/home/mike/cisco/vpnclient/interceptor.o] Error 1
make[3]: *** [_module_/home/mike/cisco/vpnclient] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/desktop'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
One more error to fix. This one involved changing netdevice.h in the kernel source tree from const struct net_device_ops *netdev_ops to just struct net_device_ops *net_device_ops. We can do that with one line as shown below
# sed -i 's/const\ struct\ net_device_ops\ \*netdev_ops;/struct\ net_device_ops\ \*netdev_ops;/' `find /usr/src -name netdevice.h`
# ./vpn_install
Success, the module compiles and installs. Now we just need to run it. To do this you will need a pcf file from your VPN administrator. For me, I took the files from a windows client and modified it slightly by removing the value for the ISPPhonebook entry. Place this in /etc/opt/cisco-vpnclient/Profiles and then connect with vpnclient connect PCF_FILE.

42 comments:

  1. Many thanks, have helped!
    From Russia with love!

    ReplyDelete
  2. The installation works as a charm, but when I try to run the VPN client, the computer crash and restart... :( I have tried installing it on a Acer Aspire 5024 laptop.

    /Edison

    ReplyDelete
  3. I haven't experienced this so really these are just guesses. There have been some reports around a conflict with anti virus programs, do you have one of those installed on your Linux laptop? It may also be something to do with firewall settings. If you have one running, try disabling it for a test.

    ReplyDelete
  4. Working like a charm, thanks a lot :-)

    (OpenSuSE 11.3 64bit, kernel 2.6.34-12-desktop)

    Snoofy

    ReplyDelete
  5. I have downloaded the client and the patches, however I get the following:

    sh ./vpn_install
    Cisco Systems VPN Client Version 4.8.02 (0030) 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.34.7-0.4-desktop/build]

    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.34.7-0.4-desktop/CiscoVPN".
    * The VPN service will be started AUTOMATICALLY at boot time.
    * Kernel source from "/lib/modules/2.6.34.7-0.4-desktop/build" will be used to build the module.

    Is the above correct [y]

    Making module
    make -C /lib/modules/2.6.34.7-0.4-desktop/build SUBDIRS=/media/store/Downloads/Install/Cisco VPN Client For Linux/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-2.6.34.7-0.3'
    make[1]: *** No rule to make target `VPN'. Stop.
    make[1]: Leaving directory `/usr/src/linux-2.6.34.7-0.3'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".

    I do not know how to proceed, or what is the reason for this. Please help me if you can.

    ReplyDelete
  6. Many many thanks... worked perfectly on 2.6.36 amd64

    ReplyDelete
  7. Thanks - this worked. The trick was applying the 64-bit patch on top of the package that already claimed to be a 64-bit version. Not sure why that worked, but hey, it finally compiled.

    ReplyDelete
  8. This solve my problem.
    Many thanks.

    ReplyDelete
  9. i was trouble without 'linux/autoconf.h'.
    i was saved, thankyou mike!
    from japan.

    ReplyDelete
  10. uname returns 'Linux' and thats it...in my usr/src/ I have
    linux-headers-2.6.35.22 (and the same with -generic)
    linux-headers-2.6.35-24 (and the same with -generic)


    the touch thing did jack for me. I'm still stuck on the autoconf.h problem...

    Ubuntu dekstop 10.10 64 bit.

    ReplyDelete
  11. I should also mention that i'm using
    vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz

    ReplyDelete
  12. Monty,

    It sounds like you don't have your kernel source installed. Check with 'rpm -qa | grep kernel'. You should have something like kernel-source-2.6.34.7-0.5.1.noarch like I have for my SuSE system. Also, to find more information about your kernel, try 'uname -a', or for just the kernel version use 'uname -r'.

    To find out if you are running a 64 bit OS check the result of uname -a for an x86_64, that is 64 bit. If you are be sure to put in the 64 bit cisco patch as noted in the post.

    Lastly, I would recommend downloading from the links I provided. I never really got earlier versions to work properly.

    ReplyDelete
  13. Thanks for this! Hey Monty, I had the same issue as you with the autoconf.h and eventually just removed the INCLUDE that was calling it.. in other words edit all the .c files in the vpnclient directory, and remove the line that mentions autoconf.h

    Dirty, but it works.

    K

    ReplyDelete
  14. Hey Michael,

    Thanks a lot. It really works.

    Thanks again.

    ReplyDelete
  15. Mine crashes! I am running ubuntu on VMware server. Any suggestions? - Guru

    ReplyDelete
  16. I haven't tried this in VMware server, but I do have VMware desktop on my machine which I've had problems with. My notes say it's because of bridged Ethernet so I'm not sure if that applies to you or not.

    ReplyDelete
  17. I was able to see identical results as your post except when you saw it finally work I saw:

    ./vpn_install
    Cisco Systems VPN Client Version 4.8.02 (0030) 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.34.7-0.7-desktop/build]

    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.34.7-0.7-desktop/CiscoVPN".
    * The VPN service will be started AUTOMATICALLY at boot time.
    * Kernel source from "/lib/modules/2.6.34.7-0.7-desktop/build" will be used to build the module.

    Is the above correct [y]

    Making module
    make -C /lib/modules/2.6.34.7-0.7-desktop/build SUBDIRS=/home/user/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-2.6.34.7-0.7-obj/x86_64/desktop'
    make -C ../../../linux-2.6.34.7-0.7 O=/usr/src/linux-2.6.34.7-0.7-obj/x86_64/desktop/. modules
    CC [M] /home/usera/vpnclient/linuxcniapi.o
    CC [M] /home/user/vpnclient/frag.o
    CC [M] /home/user/vpnclient/IPSecDrvOS_linux.o
    CC [M] /home/user/vpnclient/interceptor.o
    /home/user/vpnclient/interceptor.c: In function ‘interceptor_init’:
    /home/user/vpnclient/interceptor.c:140:21: warning: assignment from incompatible pointer type
    /home/user/vpnclient/interceptor.c: In function ‘add_netdev’:
    /home/user/vpnclient/interceptor.c:283:45: error: dereferencing pointer to incomplete type
    /home/user/vpnclient/interceptor.c:284:20: error: dereferencing pointer to incomplete type
    /home/user/vpnclient/interceptor.c: In function ‘remove_netdev’:
    /home/user/vpnclient/interceptor.c:311:24: error: dereferencing pointer to incomplete type
    make[4]: *** [/home/user/vpnclient/interceptor.o] Error 1
    make[3]: *** [_module_/home/user/vpnclient] Error 2
    make[2]: *** [sub-make] Error 2
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.34.7-0.7-obj/x86_64/desktop'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".



    Suggestions??

    Thanks!

    ReplyDelete
  18. I realize the error is slightly different but did you apply the vpnclient-linux-2.6.31-final.diff patch?

    ReplyDelete
  19. Yes. I tried nuking the whole vpnclient folder, re-extracting the tarball, and doing all the steps again from the beginning. On the last step after the sed command I get the exact same output as before except this line is missing now:

    CC [M] /home/user/vpnclient/IPSecDrvOS_linux.o

    I would be interested in seeing a side by side comparison between your version and my version of these two files:

    /home/user/vpnclient/interceptor.c
    /usr/src/linux-2.6.34.7-0.7/include/linux/netdevice.h
    (of course your kernel version will be different)

    Is this something that can be arranged?

    I am wondering that since I have a slightly different kernel version than you that maybe my netdevice.h is slightly different. I have been staying up to date on all my openSUSE 11.3 patches and updates and I wonder if an update included a change that is causing this trouble.

    Thoughts?

    ReplyDelete
  20. Since I'm having issues getting the cisco client to build perhaps I'll just continue using vpnc. The problem I've had with vpnc is that is disconnects every 20 to 90 minutes. ...well it looks like it's still connected but it's broken. I've got to disconnect and reconnect for it to work.

    The reason I'm mentioning this is that I just read your post "Cisco VPN Scripts" and am wondering if something similar would fix what I'm seeing with vpnc.

    Thoughts?

    ReplyDelete
  21. I doubt the local network route is your problem as it should show up much faster than 20-90 minutes. I have had some interesting machine hangs when the VPN is connected. It seems to be related to the 'extra' applications I am running. Like if I am playing music at the time but I haven't nailed that down yet. Actually I am really hoping it will just go away when I upgrade (bad sysadmin!)

    ReplyDelete
  22. A note to those that get a VPN hang. I found that with multiple interfaces up the Cisco client stopped passing traffic after about 30 seconds. I had a wireless adapter connected (without an IP) and a wired connection passing traffic. I changed my wireless startmode = 'auto' to 'manual'. It disappeared from 'ifconfig' output and Cisco was happy again.

    ReplyDelete
  23. I've installed vpnclient-linux-x86_64-4.8.02.0030-k9 following Your instructions. When I connect to the net by eth0 it works fine, but when I use my 3G combi pcmcia card it does'n. After connecting to provider and then sudo /etc/init.d/vpnclient_init start
    and vpnclient connect VIG I only get message The application was unable to communicate with the VPN sub-system. Could You help me, pls.
    I'm using ubuntu 10.10 and IPWireless 3G PCCARD combo (UMTS/GPRS/EDGE)

    ReplyDelete
  24. Doing some Google searches, the 3G connectivity may be more of a fundamental issue. Perhaps this is an opportunity to see if an alternative technology works. I wrote a blog about using vpnc here. This seems to work well for my connection, have a look and see if that works for you.

    ReplyDelete
  25. Thanks a lot, i tried vpnc and it works fine with 3G

    ReplyDelete
  26. Very good job.. thx man.

    ReplyDelete
  27. I could install Cisco-VPN only with your help,
    thank you so much!

    ReplyDelete
  28. Thank you so much for the great guide. I believe I got all the patches correct - everything installed and initializing works on ubuntu 11.04. When I then try to run my pcf file the computer jumps to a black screen with about 20 lines of output first few lines are:
    BUG: unable to handle kernel paging request at f811d170
    IP: [] add_netdev+0xa5/0xd0 [cisco_ipsec]
    *pde = 34022067 *pte = 7d612161
    Oops: 0003 [#1] SMP
    last sysfs file: /sys/devices/platform/dell-laptop/rfkill0/uevent
    ...

    When getting out of that (only by pressing power button) the terminal says:
    Cisco Systems VPN CLient Version 4.8.02 (0030)
    ...
    Running on: Linux 2.6.38-9-generic #43-Ubuntu SMP Thu Apr 28 15:25:15 UTC 2011 i686
    Config fule directory: /etc/opt/cisco-vpnclient

    The application was unable to communicate with the VPN sub-system

    After this I am not able to reinitialize Cisco

    Does this sound like an issue with the way the client is installed, the pcf file I'm using (provided from my work) or something else?

    This is the same error on two different ubuntu computers...

    Thank you a ton!

    bg

    ReplyDelete
  29. Ben,

    Sorry to say this I haven't seen anything this harsh before although my kernel is quite as up to date. If you don't have any private certificates, you could try the built in VPN client. I wrote a blog about ithere.

    ReplyDelete
  30. Thanks for the reply. I contacted my network admin and he also recommended VPNC which installed and seems to work with no problems.

    sudo apt-get install vpnc network-manager-vpnc network-manager-vpnc-gnome

    Odd that Cisco was having such issues...

    bg

    ReplyDelete
  31. First of, thanks much for the step by step guide. Everything worked in the compile and installation steps.

    When I tried to connect, it looks like the vpnclient crashes. Not sure what could be the issue.

    I am running the following version...

    2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

    After the crash, it is knocking off my ethernet connection too.

    root@siddarth:/home/srini/Downloads/vpnclient# /etc/init.d/vpnclient_init start
    Starting /opt/cisco-vpnclient/bin/vpnclient: Done

    root@siddarth:/home/srini/Downloads/vpnclient# /etc/init.d/vpnclient_init status
    Module Size Used by
    cisco_ipsec 596618 0

    cipsec0 Link encap:Ethernet HWaddr 00:0b:fc:f8:01:8f
    NOARP MTU:1356 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@siddarth:/home/srini/Downloads/vpnclient# vpnclient connect SHC
    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.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64
    Config file directory: /etc/opt/cisco-vpnclient

    The application was unable to communicate with the VPN sub-system.
    root@siddarth:/home/srini/Downloads/vpnclient# cvpnd: timeout; process not responding, exiting.
    ^C

    root@siddarth:/home/srini/Downloads/vpnclient# /etc/init.d/vpnclient_init status
    Module Size Used by
    cisco_ipsec 596618 1


    ^C

    ReplyDelete
  32. I'm guessing the old 2.6.31 patch isn't working for the newer kernels. You could try the patch / instructions as listed here, or if you aren't using certificates, you could use the open source alternative (my preferred choice) which I wrote a blog entry here

    ReplyDelete
  33. Thanks ,but after install I got the following error message:

    Running on: Linux 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011 x86_64
    Config file directory: /etc/opt/cisco-vpnclient

    Could not attach to driver. Is kernel module loaded?
    The application was unable to communicate with the VPN sub-system.

    Any advise?

    ReplyDelete
  34. Hi!!
    Worked perfectly on my Ubuntu Linux 2.6.35-30-generic.

    Kevin -- Use this script

    currdir=`pwd`
    cd /etc/CiscoSystemsVPNClient/Profiles/
    sudo /etc/init.d/vpnclient_init start
    sudo vpnclient connect VPN_PCF_file(without extension)
    cd $currdir
    exit

    ReplyDelete
  35. Hi i followed Michael England steps below
    * The VPN client itself
    * A 64 bit patch
    * A 2.6.31+ patch or as a file from here

    Output:
    ***************************************************
    root@localhost vpnclient]# ./vpn_install
    Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
    Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.

    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.32-131.0.15.el6.x86_64/CiscoVPN".
    * The VPN service will be started AUTOMATICALLY at boot time.
    * Kernel source from "/lib/modules/2.6.32-131.0.15.el6.x86_64/build" will be used to build the module.

    Is the above correct [y]y

    Making module
    make -C /lib/modules/2.6.32-131.0.15.el6.x86_64/build SUBDIRS=/usr/src/vpnclient modules
    make[1]: Entering directory `/usr/src/kernels/2.6.32-131.0.15.el6.x86_64'
    CC [M] /usr/src/vpnclient/interceptor.o
    /usr/src/vpnclient/interceptor.c: In function ‘interceptor_init’:
    /usr/src/vpnclient/interceptor.c:140: warning: assignment discards qualifiers from pointer target type
    CC [M] /usr/src/vpnclient/linuxkernelapi.o
    LD [M] /usr/src/vpnclient/cisco_ipsec.o
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: could not find /usr/src/vpnclient/.libdriver64.so.cmd for /usr/src/vpnclient/libdriver64.so
    CC /usr/src/vpnclient/cisco_ipsec.mod.o
    LD [M] /usr/src/vpnclient/cisco_ipsec.ko.unsigned
    NO SIGN [M] /usr/src/vpnclient/cisco_ipsec.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.32-131.0.15.el6.x86_64'
    Copying module to directory "/lib/modules/2.6.32-131.0.15.el6.x86_64/CiscoVPN".
    Already have group 'bin'

    Creating start/stop script "/etc/init.d/vpnclient_init".
    /etc/init.d/vpnclient_init
    Enabling start/stop script for run level 3,4 and 5.
    Creating global config /etc/opt/cisco-vpnclient

    Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
    /opt/cisco-vpnclient/license.txt
    chown: changing ownership of `/opt/cisco-vpnclient/license.txt': Operation not permitted

    Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
    * New Profiles : sample

    Copying binaries to directory "/opt/cisco-vpnclient/bin".
    Adding symlinks to "/usr/local/bin".
    /opt/cisco-vpnclient/bin/vpnclient
    chown: changing ownership of `/opt/cisco-vpnclient/bin/vpnclient': Operation not permitted
    ******************************************************
    please any one help me how to fix the "changing ownership of `/opt/cisco-vpnclient/license.txt': Operation not permitted" issue

    ReplyDelete
  36. HI All,

    Without any additional installation i ran the below commands...

    ***********************************************
    [root@localhost vpnclient]# /etc/init.d/vpnclient_init start
    Starting /opt/cisco-vpnclient/bin/vpnclient: Done
    [root@localhost vpnclient]# /etc/init.d/vpnclient_init status
    Module Size Used by
    cisco_ipsec 588611 0

    cipsec0 Link encap:Ethernet HWaddr 00:0B:FC:F8:01:8F
    NOARP MTU:1356 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    [root@localhost vpnclient]# vpnclient connect Americas_East
    bash: /usr/local/bin/vpnclient: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    [root@localhost vpnclient]#

    ***********************************************

    Please tell me how to fix this error "bad ELF interpreter: No such file or directory"....

    I waiting for your reply.. Please any one answer me...

    ReplyDelete
  37. A bad ELF interpreter message can be an indicator of a 32bit vs 64bit problem. At least that is where I've seen it before. You could try installing your 32 bit library but you shouldn't need it. Did the 64 bit patch apply correctly.

    Alternative to all of this is connecting to a Cisco VPN without their software. I wrote a quick blog on it here.

    You could also try upgrading to Cisco AnyConnect which I have had success with, although it doesn't offer enough benefit for me to switch away from the native tools.

    ReplyDelete
  38. https://nowhere.dk/articles/installing-cisco-vpn-client-on-ubuntu-11-10-oneiric-ocelot

    ReplyDelete
  39. I am using Fedora 20 and cisco vpn. your initial step went fine until I came to the diff. It rejected this file. Denis

    ReplyDelete