LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2005, 06:51 PM   #1
rgbeard
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
Cisco VPN Client


I have upgraded my Laptop to RHEL AS4, Kernel 2.6.9-11.EL, and am trying to install Cisco VPN Client, version 4.6.03.

I have successfully generated source information in /usr/src/linux, a process which is very different in Linux AS4 than in prior versions.

However, when running vpn_install, and answering the few questions,

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.9-11.EL/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/usr/src/linux" will be used to build the module.

Is the above correct [y]


the screen scrolls with hundreds of errors and terminates with:

make[2]: *** [/home/rbeard/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/rbeard/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


It appears that either I'm doing something dreadfully wrong, or the 4.6.03 is not compatible with RHEL AS4. Any ideas? I'm not a C Programmer, and don't know enough myself to dig out of this one.
 
Old 08-15-2005, 08:05 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Give's a few more lines from the bottom? We can't see
the cause of the problem, just its consequences.


Cheers,
Tink
 
Old 08-15-2005, 08:48 PM   #3
rgbeard
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Here's the first few lines where the failure begins:

Directory containing linux kernel source code [/usr/src/linux]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.9-11.EL/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/usr/src/linux" will be used to build the module.

Is the above correct [y]

Making module
make -C /usr/src/linux SUBDIRS=/home/rbeard/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
CC [M] /home/rbeard/vpnclient/linuxcniapi.o
/home/rbeard/vpnclient/linuxcniapi.c:13:27: linux/version.h: No such file or directory
In file included from include/linux/types.h:13,
from include/linux/if.h:22,
from include/linux/netdevice.h:28,
from /home/rbeard/vpnclient/linuxcniapi.c:14:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/if.h:22,
from include/linux/netdevice.h:28,
from /home/rbeard/vpnclient/linuxcniapi.c:14:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/if.h:22,
from include/linux/netdevice.h:28,
from /home/rbeard/vpnclient/linuxcniapi.c:14:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
i

AND

Here's the last few lines of the failure

{standard input}:4239: Error: symbol `security' is already defined
{standard input}:4700: Error: symbol `u' is already defined
{standard input}:4952: Error: symbol `index' is already defined
{standard input}:4964: Error: symbol `private' is already defined
{standard input}:5059: Error: symbol `lock' is already defined
{standard input}:5251: Error: symbol `child' is already defined
{standard input}:5335: Error: symbol `output' is already defined
{standard input}:5347: Error: symbol `ops' is already defined
{standard input}:5693: Error: symbol `stats' is already defined
{standard input}:5893: Error: symbol `lock' is already defined
{standard input}:6184: Error: symbol `id' is already defined
{standard input}:6232: Error: symbol `protocol' is already defined
make[2]: *** [/home/rbeard/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/rbeard/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


The scrollback buffer is 1,000 lines on my system, and the process still overruns the scrollback buffer.
 
1 members found this post helpful.
Old 09-06-2005, 08:18 AM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by rgbeard
Making module
make -C /usr/src/linux SUBDIRS=/home/rbeard/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
CC [M] /home/rbeard/vpnclient/linuxcniapi.o
/home/rbeard/vpnclient/linuxcniapi.c:13:27: linux/version.h: No such file or directory
Your kernel source in /usr/src/linux is probably not set up correctly. Check that /usr/include/linux is set up correctly, and make sure that you've configured your kernel source to (at least roughly) match your running system.

Quote:
The scrollback buffer is 1,000 lines on my system, and the process still overruns the scrollback buffer.
You can add this to the end of your command to view the output in less, which lets you use the arrow keys to scroll up and down:
Code:
2>&1 | less
 
Old 09-13-2005, 09:10 PM   #5
griffjon
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
compiling Cisco VPN

I just fixed that using the guide about halfway down this page (debian-based system, other styles will differ!)

http://ubuntuforums.org/archive/index.php/t-21054.html

Quote:
For All you Cisco Client Users out there, here is a Step by Step guide on how to install it on Ubuntu 5.04


1. Mine was a fersh install
2. Place your latest Cisco Client in your home directory.
3. Do a sudo apt-get install build-essential
4. Do a sudo apt-get install gcc
5. Do a uname -r to find the correct kernel-headers for your build.
6. Use synaptic to search and install the correct kernel-HEADERS, not source.
7. Untar your Cisco Client, go to the vpnclient folder and do a sudo sh vpn_install
8. Answer all questions, the defaults worked for me.
9. make sure you start the vpn sub-system with
sudo /etc/init.d/vpnclient_init start
10. Copy your .pcf profile to the sudo cp <your .pcf> /etc/opt/cisco-vpnclient/Profiles.
11. Do a vpnclient connect <your profile> (without the .pcf extention)
12. Hope this helps.

Hemps
the important info is using the headers, and getting the right ones!
 
Old 09-13-2005, 09:14 PM   #6
griffjon
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
VPN connect errors?

Now, that being said, I have it installed, I have the subsystem running, but when I try to connect, I get this:

Secure VPN connection terminated locally by client.
Reason: Failed to establish VPN connection

Well, gee, that's helpful.

Any ideas? Places to look for more useful error info? dmesg reports "badness in local_bh_enable" , which googling for gives less than useful info so far. I continue digging...
 
Old 09-26-2005, 05:55 AM   #7
lipkap
LQ Newbie
 
Registered: Sep 2005
Location: Lodz, PL
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
I guess there's something wrong with your VPN Profile (I mean the pcf file) - I get your error when i use the sample pcf shipped with the vpnclient distribution. When i use my pcf file (which i suppose is OK cause it works fine with a windows client) i get the following error:

isco Systems VPN Client Version 4.0.4 (A)
Copyright (C) 1998-2003 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.8-1-386 #1 Thu Nov 11 12:18:43 EST 2004 i686

Enter Certificate password:
Initializing the VPN connection.
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
Secure VPN Connection terminated locally by the Client
Reason: Failed to establish a VPN connection.
There are no new notification messages at this time.

Any ideas ??
 
Old 10-11-2005, 03:32 PM   #8
greifenwald
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Hi,

I have the same problem

Initializing the VPN connection.
bind: Address already in use
bind: dst addr 0.0.0.0 port 500

Does anybody knows a solution?

Thanks in advance

greifenwald
 
Old 10-12-2005, 02:17 AM   #9
lipkap
LQ Newbie
 
Registered: Sep 2005
Location: Lodz, PL
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
Try this:

lsof -i:<port_number>
This should list the pids of the processes listening on you port.
Then try:

ps -af | grep <pid_found_with_the_prev_command>

In my case it turned out that it was some other vpn client that i tried to install. I just killed it and everything started working.
 
Old 10-12-2005, 03:46 PM   #10
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Cisco VPN has problems working through firewalls (at least for earlier versions on Windows), so I'd suggest looking at your firewall logs if you're using one.
 
Old 12-22-2006, 08:14 PM   #11
flan5ter
LQ Newbie
 
Registered: Dec 2006
Distribution: suse
Posts: 1

Rep: Reputation: 0
Cisco VPN Client

What a ball ache I have had installing Cisco VPN client. I installed the Kernel sources when I originally setup linux. One of the updates upgraded the kernel. Took a day for a novice like me to reinstall the Kernel source.

Then once past that, I was unable to connect because port 500 was in use by something else. I was well chuffed when I saw the post that showed the incredible command that is:

lsof -i:<port_number>

This sorted everthing out, as I was then able to kill -9 the process in question, which was a program called racoon. I man'ed and info'ed the command lsof and no where does it show -i:<port number>, take it its just one of those things you have to know already.

Thanks for your help, really appreciate it. I will get to grips with Linux if it kills me.

Regards
Flan5ter
 
Old 09-12-2007, 08:42 AM   #12
dubis
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Angry Same case

Hello,

I ve got this message too :

Cisco Systems VPN Client Version 4.7.00 (0640)
Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686
Config file directory: /etc/opt/cisco-vpnclient

Initializing the VPN connection.
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Illegal seek
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
bind: Address already in use
bind: dst addr 0.0.0.0 port 500
bind: Address already in use
Secure VPN Connection terminated locally by the Client
Reason: Failed to establish a VPN connection.
There are no new notification messages at this time

I m using kubuntu fiesty

thanks for your help
 
Old 04-02-2008, 11:44 PM   #13
CaptainMorgan
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by lipkap View Post
Try this:

lsof -i:<port_number>
This should list the pids of the processes listening on you port.
Then try:

ps -af | grep <pid_found_with_the_prev_command>

In my case it turned out that it was some other vpn client that i tried to install. I just killed it and everything started working.
This worked for me... I had seen that I forgot to kill the other client I tried installing, vpnc- once I killed it I was able to connect via the Cisco VPN Client.

Woohoo!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cisco vpn 4.6 client mnauta Linux - General 6 12-04-2005 06:03 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
cisco vpn client aqoliveira Linux - Networking 4 07-19-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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