August 1, 2009 · Networking · Email This Post
Share

If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums. Thanks for visiting!

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

  • Share/Bookmark

Related Articles

32 Comments to “How to setup Cisco VPN using VPNC Ubuntu Jaunty (9.04)”

  1. Confluence: Engineering Portal says:

    cisco vpn client for ubuntu and x64 windows…

    install # Download vpnclientlinux4.8.00.0490k9.tar.gz…

  2. gary says:

    I’m able to connect properly but I can’t see anything on the network. It works fine in windows and I can ping the IP 172.21.90.102, but I can’t in Ubuntu 10.

    Netstat for windows gives this:
    ===========================================================================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.103 20
    127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
    172.21.90.102 255.255.255.255 192.168.150.177 192.168.150.177 1
    192.168.2.0 255.255.255.0 192.168.2.103 192.168.2.103 20
    192.168.2.15 255.255.255.255 192.168.2.103 192.168.2.103 1
    192.168.2.103 255.255.255.255 127.0.0.1 127.0.0.1 20
    192.168.2.255 255.255.255.255 192.168.2.103 192.168.2.103 20
    192.168.150.177 255.255.255.255 127.0.0.1 127.0.0.1 20
    192.168.150.255 255.255.255.255 192.168.150.177 192.168.150.177 20
    207.195.60.25 255.255.255.255 192.168.2.1 192.168.2.103 1
    224.0.0.0 240.0.0.0 192.168.2.103 192.168.2.103 20
    224.0.0.0 240.0.0.0 192.168.150.177 192.168.150.177 20
    255.255.255.255 255.255.255.255 192.168.2.103 192.168.2.103 1
    255.255.255.255 255.255.255.255 192.168.150.177 192.168.150.177 1
    Default Gateway: 192.168.2.1
    ===========================================================================

    Ubuntu gives this:
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    172.21.91.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
    207.195.59.25 192.168.2.1 255.255.255.255 UGH 1500 0 0 eth0
    192.168.150.177 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
    172.21.90.3 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
    172.21.90.102 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
    192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
    0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

    Is there something I need to do to fix this?

Leave a Reply