How to setup Cisco VPN using VPNC Ubuntu Jaunty (9.04)

Sponsored Link
This guide is for ubuntu users who want to connect to Cisco VPN. We will be using VPNC (it is in ubuntu 9.04 repo). This guide assumes you have profile file in .pcf format (we will use cisco.pcf as an example here).

Let’s begin and follow the steps exactly replacing your own pcf file:

Open terminal and run the following commands

* Create a directory

mkdir vpnclient

Change to that directory:

cd vpnclient

* Download cisco-decrypt file which will be used to decrypt the group password from your pcf file:

wget http://www.debuntu.org/files/cisco-decrypt.c

sudo apt-get install libgcrypt11-dev

gcc -Wall -o cisco-decrypt cisco-decrypt.c $(libgcrypt-config --libs --cflags)

chmod +x cisco-decrypt

sudo cp cisco-decrypt /usr/bin

* Download pcf2vpnc to convert pcf files in vpnc configuration format

wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc

chmod +x pcf2vpnc

sudo cp pcf2vpnc /usr/bin

* Go to windows vpn profiles directory and convert .pcf files to .conf files

pcf2vpnc cisco.pcf > cisco.conf

Note:replace above cisco.pcf with your own .pcf file.

sudo cp cisco.conf  /etc/vpnc/

* install vpnc and connect to vpn

sudo apt-get install vpnc resolvconf

sudo vpnc cisco

Enter username for <vpn> :
Enter password for <vpn>:
VPNC started in background (pid: 6092)...

* To disconnect simply do

sudo vpnc-disconnect

After your VPN has been established then connect to your remote desktop

Go to Applications >> Internet >> Terminal server client

Or

In terminal run

tsclient

Credir goes here

Sponsored Link

You may also like...

39 Responses

  1. Anders says:

    AWESOME GUIDE!! However, the link to the c-source is dead – use this in stead: http://www.unix-ag.uni-kl.de/~massar/soft/cisco-decrypt.c

  2. shack6288 says:

    thanks so much dude

  3. quart says:

    thank you very much. It works.

  4. quart says:

    p.s I tested it on ubuntu 11.4

  5. Luis says:

    Thank you so much, it worked for me on ubuntu natty

  6. SSuitcase says:

    Thank you so much!
    It works on 10.10

  7. Chris says:

    Hi Gary,

    I have the same problem. The VPNC started as follows:
    VPNC started in background (pid: 11042)…
    But I am not able to connect to any machine using the vpn tunel. I am wondering if you found the solution. Thanks.

    Chris

  8. gary says:

    That was a long time, and I can’t remember now. But I do remember that hostnames never worked. In the end I was using the gnome network manager to connect.

  9. Giri says:

    thanks a lot.. it worked like magic..

Leave a Reply

Your email address will not be published. Required fields are marked *