Setup Cisco VPN connection with vpnc
It was always a challenge for me to get the Cisco VPN Client or Cisco AnyConnect properly install, configured and working. This article will show you how to do it without by just using vpnc. Vpnc is a Cisco compatible vpn client and available in the Ubuntu repositories.
Let’s get started. Open up a terminal session and enter:
sudo apt-get install vpnc network-manager-vpnc
This will install everything necessary to set up a cisco vpn connection. Now look at the top right corner on your screen and you should the the network connection icon usually a double arrow. Click on it and you should see something like the picture below.
Click on “Edit Connections…” and you should see the following.
Click on the “Add” button and the VPN configuration wizard starts.
Select the Cisco Compatible VPN (vpnc) and click on “Create…” and you will see the following.
Enter a name for your VPN connection. Under general fill in the Gateway which should be something like vpn.company.com. Now you need to know if the PIX/ASA is setup to do a two factor authentication or not. I am showing you how to do the two factor authentication. For the two factor authentication you need to know the VPN group name and group password and the User name and user password is usually your Active Directory or LDAP credentials. Fill those in and make sure not to save the user password. I recommend though to save the group password. Click on the “Advanced” button and you should see something like this.
The only thing we have to enter/change is the domain name. Enter the domain as displayed in the picture and click on “Apply” and select the other tab and you should see the following.
Click on “Save” and now you should be able to establish the VPN connection. Click again on the top right corner on the Network icon and select “VPN connections” and click on the newly create VPN connection.
If everything is configured correctly and working you should see a pop up that asks for your AD/LDAP User password. Enter it and click ok.
After you entered your password correctly you should the a notification that the connection is established as displayed below.
In order to disconnect the VPN connection click on the Network Icon in the top right corner, select “VPN” and click on “disconnect vpn”.
That’s it. I hope you liked this post. Please leave a comment and I am happy to reply on it.