How to Install Cisco VPN on Ubuntu

Get the VPN client and untar it with this command:
$ tar xzf vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz

Go to VPN install directory:
$ cd vpnclient/

Run the install:
$ sudo ./vpn_install
Take the defaults when prompted.

Copy your vpn profiles to here: /etc/opt/cisco-vpnclient/Profiles/

Start the VPN with this command:
$ sudo /etc/init.d/vpnclient_init start

Connect to your VPN with this command:
$ sudo vpnclient connect YourVPNprofileHere
with the “YourVPNprofileHere” part being the file name of your vpn profile file without the “.pcf” extension.

To make it easier to start the VPN I created a script and added an icon for it to my launch panel in Ubuntu. Here’s the contents of the script:
#!/usr/bin/env bash
#command to start vpn:
/etc/init.d/vpnclient_init start
#to run VPN:
vpnclient connect work

These links helped me immensely with figuring out the above:
Link #1
Link #2

Comments

3 Responses to “How to Install Cisco VPN on Ubuntu”

  1. Beanstown » Quick Tech Note from GlassLaundry on March 7th, 2008 7:34 am

    [...] Check out the Notes: How to Install Cisco VPN on Ubuntu [...]

  2. Thomas on July 1st, 2008 6:14 am

    If I point it to the source files at
    /usr/src/usr/src/linux-headers-2.6.24-19, then I get:

    ERROR: Kernel configuration is invalid.
    include/linux/autoconf.h or include/config/auto.conf are missing.
    Run ‘make oldconfig && make prepare’ on kernel src to fix it.

    If I use /usr/src/usr/src/linux-headers-2.6.24-19-generic, then I get:
    In file included from /home/thomas/vpnclient/Cniapi.h:15,
    from /home/thomas/vpnclient/linuxcniapi.c:31:
    /home/thomas/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/thomas/vpnclient/linuxcniapi.o] Error 1

    Is the 4.8.01 for 64 bit only?

  3. M. Whistle on July 1st, 2008 7:34 am

    That could be a bus size issue.

Leave a Reply