Connect To Cisco VPN Using VPNC On Ubuntu 9.10

Posted: 24th December 2009 by Joep Cremers in Software
Tags: , , , ,

Install VPNC and connect to Cisco VPN Concentrator.


$ sudo apt-get install vpnc resolvconf libgcrypt11-dev
$ mkdir vpncdir
$ cd vpncdir
$ wget http://www.joepcremers.nl/wordpress/wp-content/files/cisco-decrypt.c
$ gcc -Wall -o cisco-decrypt cisco-decrypt.c $(libgcrypt-config --libs --cflags)
$ chmod +x cisco-decrypt
$ sudo cp cisco-decrypt /usr/bin
$ wget http://www.joepcremers.nl/wordpress/wp-content/files/pcf2vpnc
$ sudo chmod +x pcf2vpnc
$ sudo cp pcf2vpnc /usr/bin

Convert your cisco .pcf file to .conf


$ sudo pcf2vpnc workvpn.pcf workvpn.conf
$ sudo cp workvpn.conf  /etc/vpnc/

Start vpnc and connect using workvpn.conf


$ sudo vpnc workvpn

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

Disconnect vpnc


$ sudo vpnc-disconnect

Share or Bookmark:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Twitter
  • Technorati
  • Facebook
  • LinkedIn
  • Hyves
  • Google Bookmarks
  • Add to favorites
Related posts:
  1. Install Cisco VPN Client On Ubuntu 9.10
  2. Connect To Citrix Access Gateway On Ubuntu 9.10
  3. Connect Ubuntu To Windows Share
  4. Installing Ubuntu 8.04 LTS Server and VMware Server 2
  5. Ubuntu Time Server Configuration Using Commandline
  1. Joep Cremers says:

    @strx
    Whoops.. it should be http://www.joepcremers.nl/wordpress/wp-content/files/cisco-decrypt.c
    Thanks for the comment, please let me know if it works.

  2. clint says:

    failed @: gcc -Wall -o cisco-decrypt cisco-decrypt.c $(libgcrypt-config — libs — cflags)

    Usage: /usr/bin/libgcrypt-config [OPTIONS]
    Options:
    [--prefix]
    [--exec-prefix]
    [--version]
    [--api-version]
    [--libs]
    [--cflags]
    [--algorithms]
    /tmp/ccYxO0nV.o: In function `c_decrypt’:
    cisco-decrypt.c:(.text+0×254): undefined reference to `gcry_md_hash_buffer’
    cisco-decrypt.c:(.text+0×278): undefined reference to `gcry_md_hash_buffer’
    cisco-decrypt.c:(.text+0x2d3): undefined reference to `gcry_md_hash_buffer’
    cisco-decrypt.c:(.text+0×345): undefined reference to `gcry_cipher_open’
    cisco-decrypt.c:(.text+0×363): undefined reference to `gcry_cipher_setkey’
    cisco-decrypt.c:(.text+0×381): undefined reference to `gcry_cipher_setiv’
    cisco-decrypt.c:(.text+0x3b6): undefined reference to `gcry_cipher_decrypt’
    cisco-decrypt.c:(.text+0x3c5): undefined reference to `gcry_cipher_close’
    /tmp/ccYxO0nV.o: In function `main’:
    cisco-decrypt.c:(.text+0x47c): undefined reference to `gcry_check_version’
    collect2: ld returned 1 exit status

  3. Joep Cremers says:

    I posted it with two minus signs (— libs — cflags), but on the page only one is shown. I just put it inside a code tag.
    It should work now with the new command.

  4. GarSwa says:

    Joep Cremers, you are a lifesaver. This worked perfectly, and on a day where I blew away my windows box and needed to tunnel into work for an emergency. Big Up!!

  5. blue says:

    Does not work for me, get error message as:

    resolvconf: Error: /etc/resolv.conf must be a symlink
    VPNC started in background (pid: 31061)…