| Howto: Connect/Disconnect to MMU VPN on Linux |
|
Posted on Tue 10 Apr 2007
by feiming
(1270 reads)
|
To Install 1. become root
host:$ su Password: 2. Get Cisco VPN client for Linux here (Required ICEMS Login)
3. Unpack the downloaded .tar.gz:
host:/usr/local/src# tar -xvzf vpnclient-linux.tar.gz host:/usr/local/src# cd vpnclient host:/usr/local/src/vpnclient# 4. Run the installer script
host:/usr/local/src/vpnclient# ./vpn_install Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.By installing this product you agree that you have read the license.txt file (The VPN Client license) and will comply with its terms.
Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes]
In order to build the VPN kernel module, you must have the kernel headers for the version of the kernel you are running.
Directory containing linux kernel source code [/lib/modules/2.6.15-26-686/build]
* Binaries will be installed in "/usr/local/bin". * Modules will be installed in "/lib/modules/2.6.15-26-686/CiscoVPN". * The VPN service will be started AUTOMATICALLY at boot time. * Kernel source from "/lib/modules/2.6.15-26-686/build" will be used to build the module.
Is the above correct [y]
<... ... ...>
Setting permissions. /opt/cisco-vpnclient/bin/cvpnd (setuid root) /opt/cisco-vpnclient (group bin readable) /etc/opt/cisco-vpnclient (permissions not changed) * You may wish to change these permissions to restrict access to root. * You must run "/etc/init.d/vpnclient_init start" before using the client. * This script will be run AUTOMATICALLY every time you reboot your computer. 5. Depends on Linux Distribution Check/create appropriate startup script links. This depends on Linux distribution. For Debian/Ubuntu:
host:# ls -s /etc/init.d/vpnclient_init /etc/rc2.d/S85vpnclient_init if you get this error
ls: /etc/rc2.d/S85vpnclient_init: No such file or directory 4 /etc/init.d/vpnclient_init This depends on Linux distribution. For Debian/Ubuntu:
host:# cp /etc/init.d/vpnclient_init /etc/rc2.d/S85vpnclient_init *note: It is important to understand that running the vpnclient_init script does not create VPN yet. The script only checks whether the system is configured properly and loads the necessary kernel module.
6.Configuration
[code][b]host:# cd /etc/CiscoSystemsVPNClient/Profiles/ host: /etc/CiscoSystemsVPNClient/Profiles# 'wget' www.linuxsig.net/files/mmuvpn.pcf 7. First time connect,else jump to #8
host:# /etc/init.d/vpnclient_init start 8. Change the permission so that nornal user can connect
host:# chmod 4111 /opt/cisco-vpnclient/bin/cvpnd 9. Connect to MMU VPN (normal user will do)
host:$ vpnclient connect mmuvpn FAQ: What is my username?
Please use your [webmail login]@[account domain] as your Username and your webmail password as your Password. Account domains are as follows:- Cyberjaya Staff: staff Cyberjaya Student: student Melaka Staff: staffmlk Melaka Student: studmlkExamples:- * If your webmail account is maintained in Cyberjaya campus, your login is ahmad and you are a staff, you should use the following username for VPN: ahmad@staff. * If your webmail account is maintained in Cyberjaya campus, your login is 1001010010 and you are a student, you should use the following username for VPN: v0101001@student. * If your webmail account is maintained in Melaka campus, your login is sahak and you are a staff, you should use the following username for VPN: sahak@staffmlk. * If your webmail account is maintained in Cyberjaya campus, your login is 1001210010 and you are a student, you should use the following username for VPN: v0121001@studmlk. 10.The VPN between your host and the MMU VPN server was created. To bring the session to the background
**Press Ctrl+Z** [1]+ Stopped vpnclient connect sample host:~$ bg [1]+ vpnclient connect mmuvpn & 11.To disconnect
host:~$ vpnclient disconnect 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.15-26-686 #1 SMP PREEMPT Thu Aug 3 03:13:28 UTC 2006 i686 Config file directory: /etc/opt/cisco-vpnclientDisconnecting the VPN connection. Your VPN connection has been terminated. FAQ: I get the following error
host: $ vpnclient connect mmuvpn 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 Tue Dec 5 22:28:26 UTC 2006 i686 Config file directory: /etc/opt/cisco-vpnclientCould not attach to driver. Is kernel module loaded? The application was unable to communicate with the VPN sub-system. Your Operating System startup did not run the following code.You could run
host: # /etc/init.d/vpnclient_init start or check Instruction #5
To Uninstall Use the vpn_uninstall script that comes with the client.Depends on where u extract it.
If you follow the above instruction,you can use the below code.
host:# /usr/local/src/vpnclient/vpn_uninstall
|
|
The comments are owned by the poster. We aren't responsible for their content.