Running VPN on Ubuntu linux

Tested with ubuntu 7.10

Download software packages listed in the end of this instruction.
Unpack the VPN client (Cisco-VPN-Client..) to a temporary place.
su to root

cp /usr/src/linux-headers-2.6.22-14-generic/include/linux/autoconf.h /usr/src/linux-headers-2.6.22-14-generic/include/linux/config.h

run vpn_install
(Choose to install in default folders.)
Copy the profile (*.pcf) to the catalogue
Kopier inn profilene (*.pcf) i katalogen /etc/opt/cisco-vpnclient/Profiles/
To start the VPN you enter /etc/init.d and run vpnclient_init start
(You should create a automatic startup-script in rc3.d)

You can now create a Shell script.
A simple example, where I’m using two profiles.

#!/bin/bash

clear
echo «»
echo «»
echo «»
echo «Hvilken VPN vil du koble opp mot?»
echo «»
echo «1. Fra hjemmekontor»
echo «2. Fra kontornett»
echo «»
printf «Svar:»
read answere

case «$answere» in
1)
echo «Connecting from home office…..»
vpnclient connect Hjemmekontor
;;

2)
echo «Connectiong from office…..»
vpnclient connect kontornett

;;

*)
echo «Error. (choose 1 or 2)»
sleep 3
exit 1
;;
esac

exit 0

Sample on a profile:

[main]
Description=Drift fra hjemmekontor
Host=vpnhost.com
AuthType=1
GroupName=Drift_Ekstern
GroupPwd=
enc_GroupPwd=ksdjlksdjlkdsjkdsjlkdjfksdjlksjfdkj
EnableISPConnect=0
ISPConnectType=0
ISPConnect=
ISPPhonebook=
ISPCommand=
Username=tommy
SaveUserPassword=0
UserPassword=
enc_UserPassword=
NTDomain=
EnableBackup=0
BackupServer=
EnableMSLogon=1
MSLogonType=0
EnableNat=1
TunnelingMode=0
TcpTunnelingPort=10000
SendCertChain=0
PeerTimeout=90
EnableLocalLAN=0
CertStore=0
CertName=
CertPath=
CertSubjectName=
CertSerialHash=00000000000000000000000000000000

Install the ICA client en.linuxx..
Unpack it into a temporary folder and install it.
Choose default values..

Check to see if the plugin is added to firefox by running:
ls -ltr /usr/lib/firefox/plugins

You are supposed to see npica.so -> /usr/lib/ICAClient/npica.so
If it does not exist, you just create a symlink manually.
ln –s /usr/lib/ICAClient/npica.so npica.so

SW packages (use Google 😉 ):
en.linuxx86.tar.gz
VPN_profil.pcf (You already have a pcf file on your WIN client. Use that file.)
Cisco-VPN-Client-Linux-x86-4.8.01.0640.tar.bz2

Legg igjen en kommentar

Din e-postadresse vil ikke bli publisert. Obligatoriske felt er merket med *