Sunday, January 6, 2008

Setting up Cisco VPN Client in ubuntu - gusty / Linux

This post is especially for those who want to install Cisco VPN client in ubuntu / linux systems.

If patch is not installed in your ubuntu, you can get it by using the following command:
bash$ sudo apt-get install patch
  1. Download vpnclient-linux-4.8.00.0490-k9.tar.gz (mirror) to your home directory.

  2. Open a terminal window and untar the vpnclient(better install in your home dir) with the following command:
    bash$ tar -xzf vpnclient-linux-4.8.00.0490-k9.tar.gz
    This will create a new folder called vpnclient in your home directory. Leave the terminal window open, you’ll need it later.

  3. Download the patch (mirror) and save it to the vpnclient folder that was created in step 2.

  4. Go back to your terminal window and move into the vpnclient folder:
    $ cd vpnclient/

  5. Now patch the Cisco VPN source with this command:
    $ patch < vpnclient-linux-2.6.22.diff

  6. Next we actually build the Cisco VPN client, issue this command:
    $ sudo ./vpn_install
    Just hit enter for everything it asks you, the defaults are all OK. You may see lots of warnings, but those are OK.

  7. The VPN client is installed, now we need to start it: (If you have any trouble doing it, try stoping it and restarting - bash$ sudo /etc/init.d/vpnclient_init restart)

    bash$ sudo /etc/init.d/vpnclient_init start

  8. Place your .pcf configuration files in /etc/opt/cisco-vpnclient/Profiles/

  9. If your .pcf file is called myVPN.pcf, you’ll connect to the VPN with the following command:
    $ sudo vpnclient connect myVPN

(main source http://www.longren.org/2007/05/17/how-to-cisco-vpn-client-on-ubuntu-704-feisty-fawn/ )
.

This is really easy. If you feel trouble, pls free to comment me.