Showing posts with label Cisco VPN. Show all posts
Showing posts with label Cisco VPN. Show all posts

May 5, 2013

Connect to a Cisco VPN via VPNC using .pcf configurations file

If you want to connect to a Cisco VPN from a Linux host, its better to use the Cisco AnyConnect VPN client for Linux. It is a free client tool but you need to login to the Cisco website.

VPNC is a free VPN client which is capable of connecting to Cisco VPNs (3000).

Use yum to install vpnc.

# yum install vpnc NetworkManager-vpnc vpnc-consoleuser -y

It will install all necessary packages. In the installation it create a default configurations file in the configurations directory. You need to backup that.

# mv  /etc/vpnc/default.conf  /etc/vpnc/default.conf.bak

Then you need to convert the .pcf file into a vpnc configurations file. To do that you need to run a script.

# perl   /usr/share/doc/vpnc-*/pcf2vpnc   your.pcf   /etc/vpnc/default.conf

After creating the configurations file you can try to connect to the VPN by;

# vpnc

It will ask for the user password;

# Enter password for youusername@your.vpn.server :

Give the password. If that succeed you can see a message like this.

# VPNC started in background (pid: 18957)

If you want to disconnect from the VPN, simply type ;

# vpnc-disconnect

Then it will try to disconnect your session from the VPN and will give a message like this.

# Terminating vpnc daemon (pid: 18957)

Jan 11, 2013

Cisco VPN error - 442: Failed to enable Virtual Adapter

If you install the Cisco VPN client in a Windows 7 OS some times you may see an error saying that;

Reason 442: Failed to enable Virtual Adapter

In such a scenario try to do following thing.

First go to services or type services on the search and  find the "Internet Connection Sharing (ICS)" service. Stop that service and change the service start-up option to manual. Then try to restart the "Cisco Systems, Inc. VPN Service" service.

Now try to use the VPN client.