LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 01-28-2007, 11:20 PM   #1
blink56k
Member
 
Registered: Nov 2005
Location: US East Coast
Distribution: Fedora Core 6 and several LiveCDs
Posts: 34
Blog Entries: 1

Rep: Reputation: 15
Thumbs up Got Cisco VPN client working!


I did a search on the Cisco vpn client on the site and it seems like people are finding non-binary/open source alternatives more useful (like vpnc).

However, for those that are required to use said client like me, I'm happy to finally have gotten it to work with Linux (actually I did this a long time ago but never posted about it).

The distros I've had luck with so far are PCLinuxOS, Ubuntu, and SUSE. Linspire/Freespire were a nightmare, even though I love those distros very much (can't wait for the new CNR).

I'm not an expert, so I encourage you strongly to correct any stupidities I included:


Preparation

1A. You'll need to go into a Windows installation of the Cisco VPN Client (hopefully the pre-configured one you got from your network admins) and get a copy of the .pcf file (found in the folder "profiles" in the Cisco program directory on windows...search for it).

Copy it onto a usb flash drive that linux can read...or if your wired internet access is accesible, e-mail it to yourself.

1B. Now you want to go into your distribution's package manager (synaptic, YAST, etc.) and do separate searches for kernel headers and kernel sources.

How do you know which packages are for your specific kernel? Just go to the terminal and type uname -r and it should give you a number like 2.6.blababla and then match that number with the version of the kernel headers and kernel sources.

2. Then you want to download the Linux version of the Cisco vpnclient (I can't give you a link because of licensing issues) somewhere that'll be easy to get to (the Desktop or wherever for now).

If your distro is fairly modern, you can just right click the icon and select "extract" thanks to Ark.

3. Using the terminal, go into the directory created when you extracted the files, not the original file (i.e. the folder vpnclient)

For example you'd enter something like
Code:
cd /home/username/Desktop/vpnclient
4. You must know your root/admin password for the following steps

Now type one of the following:

su ./vpn_install

or if you're using Ubuntu:

sudo ./vpn_install


What this does is execute the installation script. Usually it's safe to go with the defaults when it asks you a couple of questions (*happily presses ENTER, ENTER* ) EXCEPT when it asks you if you want it to start at boot time (say NO), in my case anyway.

If all goes well, you should see lots of lines of code (God I'm so dumb lol) and a message at the end that tells you that every time you want to start the vpn client you have to enter into the terminal something that looks like this:

Code:
/etc/rc.d/vpnclient_init start
Yay, it's installed! But wait...

5. Remember that .pcf file we needed? Now we want to copy that into the directory /etc/CiscoVPN/profiles . If you rather not go into the terminal again, you can just copy paste the file into that directory.

Note: make note of the .pcf file's name! Usually you can rename it if you want to make it shorter/easier to remember (networknumber123.pcf to omgvpn.pcf for instance)

Now type into the terminal:

Code:
/etc/rc.d/vpnclient_init start
or whatever you were told to run in order to start the vpn client after the installation finished (see step 4)

Then type:

Code:
vpnclient connect omgvpn
with omgvpn being the name of the pcf file/connection (without the file extension of course).

It should ask you for your username and password (for the vpn network, not your system) and voila!!



If Something Goes Wrong:

1. Make sure you downloaded the right kernel headers and source packages for your distro. Remember the numbers on the packages must exactly match the number you got when typing uname -r

2. Make sure you have the compilers you need (gcc, etc.). Alot of distros come with some development tools by default though and if not you can download them through your package manager.

3. Maybe the installer doesn't know where your specific distro has its modules/kernel headers saved (when it's asking you those questions). In that case, don't accept the defaults during installation.

4. Post your output here? (Warning: I'm the biggest newb ever, so I may just provide moral support lol).


This is what worked for me...it will be different for many of you I know.
 
Old 02-14-2007, 05:11 AM   #2
jsurles
Member
 
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 34

Rep: Reputation: 15
vpnclient issues.. argh! (like a pirate)

Hey there.. I was just looking up information on the cisco vpn client. I've installed it, and it appears to come up. Okay, don't laught, but I'm doing all of this remotely to my machine at home, from my machine at work. So the first time I bring it up, I do ./vpnclient connect blahblah.pcf I come to a sad realization that it just moved my machine to the vpn.. and is no longer accessible on my network. After about 30 minutes or so it becomes available again because it timed out due to inactivity (a setting on our concentrator, I suspect).

Okay, the problem is that if I attempt to ./vpnclient connect blahblah.pcf again, it doesn't start back up. If I try using the init script ./vpnclient_init start, it says it's running and to do restart.. but if I do restart, it tells me it can't unload the module because it's in use.

I've looked at my processes and I've got nothing running (that I can see) that would be using this. I've "ifconfig vpnipsec0 down"ed (I can't remember the actual interface now) but still nothing!

Of course, like a dummy, I tried just rmmod the module, and it failed cause it was "in use", so I rmmod -f'ed it , and here I am on here writing this message because I can't get to my machine at all now. (oops!).

Anyway, any input on this would be appreciated!

Jim

PS. You popped my cherry.. FIRST POST!

PSS. slackware 11, 2.6.19.2, and the latest vpn client.. I don't wanna log into cisco's site again.. it's the latest one.

Last edited by jsurles; 02-14-2007 at 05:12 AM.
 
Old 02-22-2007, 09:25 PM   #3
jsurles
Member
 
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 34

Rep: Reputation: 15
Well.. nevermind.. I just wasn't being patient enough I guess. It works now.. well it did.. but they changed it up to allow me to do split tunnelling and it's all crapped out again. :P
 
Old 02-22-2007, 09:45 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
I’ve found the cisco (i.e., closed source binary kernel-space) driver to be buggy on amd64. I was able to reliably oops the kernel while connected. Another problem with the cisco driver is its restrictiveness (I don’t think it was possible to alter the kernel routing table such that you could do so-called “split-tunneling” based on a setting on the server-side. Before I discovered the vpnc userspace program, I had resorted to the use of a virtual machine for my vpn connections. Life is so much easier, flexible, and ethically satisfying (for me) when using vpnc.
 
Old 02-27-2007, 11:52 PM   #5
Lexia
Member
 
Registered: Nov 2003
Location: SouthEastern USA
Distribution: Debian Sarge
Posts: 31

Rep: Reputation: 15
Good going, Blink56K! I've CiscoVPN up and running on both my Debian boxen, too. Wonderful secure feeling.

I pretty much followed the same steps you did, but added a pipe in for a tiny yes file so the connect script would be completely automated. My version asks if I *really* want to keep connecting - how Windowy of it. At least with Linux I can script such foolishness out.
 
Old 10-13-2007, 05:58 PM   #6
Y2J
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
Thumbs up Thank you !

Thank you,
Thank you,
Thank you,

After a lot of tears and crying and digging and searching, I got VPN to work after following your manual, I am using PCLinuxOS, installed jus this morning. I will test it in Ubuntu 7.10 and feed back. I Just don't know what to say, "Thank you" is not enough Really thanks!

I am using this: vpnclient-linux-x86_64-4.8.01.0640-k9

Cisco has finally released a new version of their vpn client for Linux. This new version compiles on all the new 2.6.xx kernels without the need for patching! You can download it from here:
http://www.longren.org/files/vpnclie...0640-k9.tar.gz
 
Old 12-04-2007, 10:01 PM   #7
ageo
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
vpnc working on Fedora 1

I got vpnc working on Fedora 7.

Question that I have is, isn't vpnc supposed to eliminate all routes to the local network and only allow connections through the vpn connection?

After I connect I can access network resources through the vpn connection, but I can also access local network resources. I'm concerned that if I vpn from, say, a training location or conference I may open up my corporate network through my own Linux box...

Can someone please shed some light here for me?

Thx!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco VPN Client rgbeard Linux - Software 12 04-02-2008 11:44 PM
Cisco VPN client working on Linux? Yig Linux - Networking 2 12-01-2006 12:07 PM
Cisco VPN-Client nodream Linux - Networking 3 12-23-2003 04:36 PM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 12:46 PM
Cisco VPN client swilde Linux - Networking 1 10-26-2002 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:56 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