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
VPN gateway name like abc.corp.xyz.com
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
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:
Post a Comment