Asterisk, and other worldly endeavours.

A blog by Leif Madsen

Cisco VPN Client on Ubuntu Karmic 9.10


I have a client who I need to connect to via a Cisco VPN, and since I use Ubuntu as my primary OS on my MacBook Pro, I’ve often needed to find some information about how to get the client working.

I had previously found some information about patching on Ubuntu 9.04 and it worked great, but since updating to 9.10 I had the same compile time issues I had before, which makes sense since the kernel is different now.

I found this site: http://joepcremers.nl/wordpress/?p=1699 which had some good instructions for getting it going, but there almost appeared to be a patch missing, at least for my platform. The patch I needed was found on this site here: http://www.painfullscratch.nl/code/vpn/

All the patches for the VPN client appear to have come from the tuxx-home.at forums: http://forum.tuxx-home.at/viewforum.php?f=15

Hopefully that gets you all the information you need to get your Cisco VPN client working on Ubuntu Karmic 9.10!

Update: June 15, 2010

So I’ve been having some problems trying to get the Cisco VPN client working past a certain kernel version update (I think it’s something like 2.6.19-something). I’m currently running 2.6.31-22-generic x86_64. I spent a bit of time trying to figure out why I couldn’t get past that older kernel (and to avoid rebooting). On some kernels it would lock up the system entirely, on other kernels the CPN client just wouldn’t connect.

After some web searching, I came across this blog post dated September 2009: http://ilapstech.blogspot.com/2009/09/cisco-vpn-client-on-karmic-koala.html. It seems to have the patch I needed to get around a compile time option that is described on that blog post. The error I was getting when compiling was:

CC [M]  /usr/src/vpnclient/interceptor.o
/usr/src/vpnclient/interceptor.c: In function ‘add_netdev’:
/usr/src/vpnclient/interceptor.c:284: error: assignment of read-only location ‘*dev->netdev_ops’
/usr/src/vpnclient/interceptor.c: In function ‘remove_netdev’:
/usr/src/vpnclient/interceptor.c:311: error: assignment of read-only location ‘*dev->netdev_ops’
make[2]: *** [/usr/src/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/usr/src/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
make: *** [default] Error 2

After the patch provided on that blog post I was still getting an error like so:

Making module
make -C /lib/modules/2.6.31-22-generic/build SUBDIRS=/usr/src/vpnclient-4.8.02.0030 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-22-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/usr/src/vpnclient-4.8.02.0030/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/usr/src/vpnclient-4.8.02.0030] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

Oh I’ve seen that error before. I used a patch from a site I mentioned earlier: http://www.painfullscratch.nl/code/vpn/.

Note that I’ve not actually checked to see if I only needed the latter patch, but with a combination of patch with the first site I mentioned in this update followed by the above mentioned sites patch, I was able to get onto my VPN connection for the client I require this for. Hope it helps!

About these ads

Written by Leif Madsen

2009/11/27 at 8:19 am

Posted in Technology

Tagged with , , , , ,

12 Responses

Subscribe to comments with RSS.

  1. [...] Read more from the original source: Cisco VPN Client on Ubuntu Karmic 9.10 « Asterisk, and other … [...]

  2. [...] Hopefully this gets you all the information you need to get your Cisco VPN client working on Ubuntu Karmic 9.10! More here [...]

  3. vpnc has yet to fail me when I need to connect to Cisco VPNs from Linux and Mac boxes. It’s usually worth trying because it’s all open-saucy and in most distributions before trying the official client.

    Jonas B.

    2009/12/08 at 3:21 pm

    • Ya I just noticed that the other day, although I haven’t had a chance to try it yet. Thanks for the info!

      Leif Madsen

      2009/12/08 at 3:38 pm

  4. [...] Continued here:  Cisco VPN Client on Ubuntu Karmic 9.10 « Asterisk, and other … [...]

  5. I still can’t believe how many views this post gets a day. It’s still at the top of my list for the last 2 months! And no comments really, which means either it’s utterly useless, or extremely useful :)

    Leif Madsen

    2010/02/24 at 10:03 am

    • I’d say extremely useful !

      tekzone

      2010/05/06 at 4:18 am

    • Very useful- I forgot about netdevice.h after upgrading a ubuntu installation (running in Virtualbox on a Windows 7 64 bit- and I have no 64 bit-client for Windows).

      Sven

      2010/07/01 at 6:08 am

  6. What is Personal VPN ?…

    personal vpn……

    Personal VPN

    2010/03/23 at 9:47 am

  7. I installed 10.10 version of Ubuntu and this instructions didn work for me.
    The message error is:

    fatal error: linux/autoconf.h: file or directory not found

    I did:

    sudo ln -s /usr/src/linux-headers-2.6.35-22-generic/include/generated/autoconf.h /usr/src/linux-headers-2.6.35-22-generic/include/linux/

    and it compiled.
    —————————-
    Surviving in the IT industry is tough and only by the use of testking 350-001 online courses and preparation materials can pass real exams be the true accomplishers in the IT world. The avoidance of braindump is a must to pass the certification exams.

    albertpaul68

    2010/10/29 at 1:55 am

  8. [...] Cisco VPN Client on Ubuntu Karmic 9.10 November 2009 11 comments 4 [...]


Comments are closed.

Follow

Get every new post delivered to your Inbox.

Join 1,972 other followers

%d bloggers like this: