Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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:
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!
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...
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.