Friday, May 11, 2007

Making Cisco VPN working on Ubuntu

Well I didnt like to do the port forwarding always whenever i need to connect to my VPN so i tried configuring vpnc on my ubuntu. The other links on internet says that you can just import your .pcf file from windows and it will start working but for me it didnt so this is what i did

Lets the pcf file you have be called as Sample.pcf
* install vpnc
sudo apt-get install vpnc

* make a vpc.conf
sudo vim /etc/vpnc/vpnc.conf

* Add the following Entries in the File
IPSec gateway gateway_name
IPSec ID General
IPSec obfuscated secret long_hex_string
Xauth username name


Here is the explanation
-- gateway_name
VPN gateway name like abc.corp.xyz.com
-- long_hex_string
for obtaining this do this
cat Sample.pcf | grep GroupPwd
This will return something like
enc_GroupPwd=121FABCD3234323214124132432532532532523532523542342342323234234232
Now this string after '=' will be the
long_hex_string
-- name
will be the username

*IMP NOTE* Please don leave any extra spaces or newline characters after these parameters otherwise it will throw an error while connecting

* now connect like this
sudo vpnc /etc/vpnc/vpnc.conf

It will prompt you for password . Enter password
Whoa you are done !!!!!!!!!!!!!!!!
Hope it was helpful

No comments: