Cisco VPN Client
From Knowledge76
Contents |
Cisco VPN Client
Introduction
Before doing anything logon as super user. It makes things easy.
sudo su
Install network-manager-gnome and the pptp plugin
FIRST install network-manager-gnome and the pptp plugin
You can do this in various ways through synaptic, automatix, or apt-get.
With apt-get, the command is
apt-get install network-manager-gnome network-manager-pptp
When you do this the network manager applet will start to run in your system tray. It has a similar icon to your network monitor icon. And it will appear beside it
Edit /etc/network/interfaces
SECOND Edit /etc/network/interfaces and
replace
/etc/network|iface eth1 inet dhcp wireless-essid MY_NETWORK
with
/etc/network|auto eth1 iface eth1 inet dhcp
I assume your wireless network interface is eth1. If not replace as appropriate.
Restart network manager
THIRDLY you have to shutdown the network manager and restart.
First kill NetworkManager and its NetworkManagerDispatcher
kill `pidof NetworkManager`
Then restart the application by running the following commands
/etc/init.d/networking restart /usr/sbin/NetworkManager
Now go and left click on the NetworkManager applet icon on the system tray .You should see the available wireless networks with their signal strengths. If you have already connected to a wired lan that will also be indicated by the wired option being toggled on.
(Now if you go thru Network Monitor and check the properties of your eth1 connection you will see that it is not enabled. LEAVE IT THAT WAY.)
Install cisco vpnclient 4.8
FOURTHLY you install the cisco vpnclient 4.8
Install linux headers
Before doing this you should have linux headers installed. Get this from synaptic.
Before doing this get your kernel version by typing uname -r and install the relevent headers
Install cisco vpnclient
cd to the directory which you unpacked it and run ./vpn_install or whatever the install file you have.
Just follow the installation mostly you can answer yes or enter since the answers to the questions asked are taken by default. This worked for me but it may not work for everybody.
After you've install copy the .pcf file (eg: abc.pcf) relevent to your network into the /etc/CiscoSystemsVPNClient/Profiles directory.
Connecting
then run the following command to start the vpnclient (you need super user access)
/etc/init.d/vpnclient_init start
and to connect run
vpnclient connect abc
That's it if it got connected you should have the following resulting screen
root@LSIL-PrecisionM60:/home/laalitha# vpnclient connect abc Cisco Systems VPN Client Version 4.8.00 (0490) Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved. Client Type(s): Linux Running on: Linux 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 Config file directory: /etc/opt/cisco-vpnclient Initializing the VPN connection. Contacting the gateway at xxx.xx.x.xxx User Authentication for msu... Enter Username and Password. Username []: Password []:
After you enter your username and password it should continue to give you
Authenticating user. Negotiating security policies. Securing communication channel. Your VPN connection is secure. VPN tunnel information. Client address: xxx.xx.xxx.xxx Server address: xxx.xx.x.xxx Encryption: 168-bit 3-DES Authentication: HMAC-MD5 IP Compression: None NAT passthrough is inactive Local LAN Access is disabled</nowiki>}}
Now you are connected thru vpn to the network
Disconnect
To disconnect open another terminal and type
vpnclient disconnect