www.ntnu.no *
INFOWEB >  dialup >  vpn  > Guide for installing VPN - Linux using Cisco VPN client (4.6)
Verktøy
Du kan legge til kommentarer
Eller sende denne artikkelen
Les artikler skrevet av arnebef
Brukervurdering
Hvor mye hjelp var det i denne artikkelen?
Mye Noe Lite
Forhåndsvisning
Du trenger ikke en 'utskriftsvennlig side' for å skrive ut denne siden. Forklaring
Innhold

Guide for installing VPN - Linux using Cisco VPN client (4.6)

There is an alternative VPN client available for Linux users. Read more about it here.

Download the Cisco VPN client here (user: vpn, password: klient): vpn client. You can also download the file via wget:

kode #1
wget --http-user=vpn --http-passwd=klient
http://www.ntnu.no/oppringt/vpn/klient/linux/vpnclient-linux-4.8.00.0490-k9.tar.gz

To decompress the file, use the command:

kode #2
tar -xzf vpnclient-linux-4.8.00.0490-k9.tar.gz

Go to the vpn catalogue, and enter the command:

kode #3
./vpn_install

Choose no when asked Automatically start the VPN service at boot time [yes] if you want to start your vpn client manually. For the rest of the options, the default value should work.

The client is installed, and configuration files have to be made. These are placed in /etc/CiscoSystemsVPNClient/Profiles. Go there and make a new file called ntnu.pcf. The contents of this file should be as shown below (Enter your user name after the line Username=):

kode #4
[main]
Description=sample user profile
Host=vpn.ntnu.no
AuthType=1
GroupName=alle
GroupPwd=passord
Username=
EnableLocalLAN=1
EnableISPConnect=0
ISPConnectType=0
ISPConnect=
ISPCommand=
SaveUserPassword=0
EnableBackup=0
BackupServer=
EnableNat=1
TunnelingMode=1
CertStore=0
CertName=
CertPath=
CertSubjectName=
CertSerialHash=00000000000000000000000000000000
DHGroup=2
ForceKeepAlives=1

Now the vpn client is ready to use IPSEC over TCP. The client should handle being behind a NAT router. If you want to use UDP, choose TunnelingMode=0. To block access to the local network when vpn is being used, choose EnableLocalLAN=0.

Connecting

To open the vpn connection, write:

kode #5
/usr/local/bin/vpnclient connect ntnu

Kommentarer

Legg til

Stian S -- 2005-08-25
Et par ting å legge til, i hvertfall når det gjelder versjon 4.6. For å kompilere måtte jeg inn i fila "interceptor.c" og flytte funksjonen "supported_device" til før "add_netdev". Dette gjelder sannsynligvis ikke alle kompilatorer. (Jeg kjører gcc version 4.0.1.) Før jeg kunne starte vpn med "vpnclient connect ntnu" måtte jeg loade VPN Client modulen med "/etc/init.d/vpnclient_init start".

Språk: en flag_no Kommentarer: 1 Aid: 323 Brukervurdering:
 
 
Sist oppdatert: 2007-07-02 Forfatter: arnebef Lest: 10492 ganger