Today, I was trying to setup the Cisco VPN client at home to connect to my office PC to check my emails. So, I began googling around for help… and, very quickly, I found this…
Following the steps written in the Ubuntu Community documentation has helped me setup almost 90% of it (The steps are quite short anyway). And then, I met a blocker. I am unable to decipher the IPSEC password needed in the VPNC. This password is actually located under enc_GroupPwd in the Cisco profile file (*.pcf).
The following steps are the funny method on how I retrieve IPSEC password from the Cisco profile (*.pcf):
You will need to have network-manager-vpnc and network-manager-vpnc-gnome installed to be able to connect to a Cicso VPN.
- Click on the Ethernet/Wireless icon on the right side of the top panel.
- Go to VPN Connections.
- Select Configure VPN….
- Select Import.
- Choose the Cisco Profile (*.pcf) and click on Open button.
- A dialog will open with all the setting filled.
- Go to Group Passwords (This is the IPSEC password).
- Check on the option, Show passwords.
- The IPSEC password will be revealed.
- Copy and paste the password in the /etc/vpnc/<vpn_file>.conf
- Run the Terminal.
- And, use the command, vpnc-connect <vpn_file>
Lastly, I am going to paste the steps from Ubuntu Community Documentation here for easy reference.
==== VPNC ====
The Cisco VPNC client is available in the vpnc package (SPM).
Configuration files are stored in /etc/vpnc, which was protected to root on my installation so you might need to use sudo for all commands here. Copy example.conf to myvpn.conf
sudo cp /etc/vpnc/example.conf /etc/vpnc/myvpn.conf
and edit the new file to look like this:
IPSec gateway <host>
IPSec ID <group username>
IPSec secret <group password>
Xauth username <username>
Xauth password <password>
Note that you can leave out <password> if you want, and you will be prompted. Now, run vpnc-connect myvpn to start the connection – your output should look something like this:
> vpnc-connect myvpn
Connect Banner:
| Welcome to
|
|
| *** VPN Service ***
|
| Your connection is now secureVPNC started in background (pid: 7885)…
> vpnc-disconnect
Terminating vpnc daemon (pid: 7885)
You can then connect/disconnect with the commands vpnc-connect myvpn and vpnc-disconnect myvpn.