
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
http://www.joepcremers.nl/wp-content/files/cisco-decrypt.c not found
@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.
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
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.
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!!
Does not work for me, get error message as:
resolvconf: Error: /etc/resolv.conf must be a symlink
VPNC started in background (pid: 31061)…