LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2005, 10:55 AM   #1
krbennettmd
LQ Newbie
 
Registered: Mar 2004
Location: Reston, Virginia, USA
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
Installing the Cisco VPN Client


All -

I just spent some time figuring out how to successfully install the Linux Cisco VPN Client, so I figured I'd write it up and share it with you all. Feel free to add/correct.

Linux Cisco VPN Client Installation Instructions

Download the file vpnclient-linux-x86_64-4.7.00.0640-k9.tar.gz.

As root, untar the tar file into /opt:

Code:
cd /opt
tar xvzf vpnclient-linux-x86_64-4.7.00.0640-k9.tar.gz
Actually, this file can be untarred into any directory. After installation, the main thing you'll need it for is to uninstall and reinstall. A reinstall will need to be done any time you upgrade your kernel.

Go into the newly created vpnclient directory and run the installation, accepting the defaults:

Code:
cd vpnclient
./vpn_install
This will create and populate the /opt/cisco-vpnclient directory.

Although the vpn service will now start automatically whenever you reboot, you will need to start it manually now unless you reboot:

Code:
/etc/init.d/vpnclient_init start
Now you'll need to create a profile file for each host you'll be connecting to. There is a sample file sample.pcf in /opt/vpnclient; copy this to another file and modify the parameters as necessary. The new file must also have an extension of .pcf. Copy the file to where it will be needed at runtime:

Code:
cd /opt/vpnclient
cp sample.pcf myconfig.pcf
kedit myconfig.pcf # or use whatever editor you like
cp myconfig.pcf /etc/opt/cisco-vpnclient/Profiles
Disable SELinux security:

Code:
setenforce 0
Note: the setenforce command may not be found if you have used sudo to get root access; use su - instead.

Now run the client:

Code:
vpnclient connect myconfig
...where myconfig is replaced with the name of your .pcf configuration file. Do not include the extension when you specify the file; it will be assumed.

When you want to disconnect, run:

Code:
vpnclient disconnect
You can also just close the terminal session in which you made the VPN connection.

Reenable SELinux security:

Code:
setenforce 1
My experimentation shows that the SELinux security needs to be disabled only at the time the vpnclient program is run. Therefore, it would be a good idea to wrap your vpnclient calls in a shell script as follows:

Create a new file _vpnclient in a directory in your path:

Code:
#! /bin/sh
/usr/sbin/setenforce 0
/opt/cisco-vpnclient/bin/vpnclient $*
/usr/sbin/setenforce 1
Make it executable:

Code:
chmod +x _vpnclient
Then use this shell script instead to run your vpnclient commands, either as root, or using sudo (sudo's a better idea, because the other way, someone can press ctrl-c and have a root shell):

Code:
_vpnclient connect myconfig
_vpnclient disconnect
 
Old 10-20-2005, 11:17 AM   #2
krbennettmd
LQ Newbie
 
Registered: Mar 2004
Location: Reston, Virginia, USA
Distribution: Fedora
Posts: 4

Original Poster
Rep: Reputation: 0
These Instructions Posted to Howto Section

I'm new around here, so I didn't know there was a howto section. I just posted these instructions there.

- Keith
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco VPN Client rgbeard Linux - Software 12 04-03-2008 12:44 AM
DISCUSSION: Installing the Cisco VPN Client krbennettmd LinuxAnswers Discussion 5 06-03-2006 09:28 PM
Cisco VPN-Client nodream Linux - Networking 3 12-23-2003 05:36 PM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 01:46 PM
cisco vpn client aqoliveira Linux - Networking 4 07-19-2002 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration