MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.

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.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

older versions (eg vpnclient-linux-4.0.1.A-k9.tar.gz) does not work.
When compiling it comes with errors like
interceptor.c:325: error: structure has no member named `next'
interceptor.c:330: error: structure has no member named `next'

Before you start you need a patchfile. Put the follwoing into a file named eg
deadlock.patch

I just tried your patch for the Cisco VPN Client but it didn't work for me. Maybe you can tell me what I did wrong or give me another idea on how to setup the Cisco VPN Client unter the 2.6 kernel tree.
The errormessage is as follows:

/* find the handler for inbound IP packets by adding a dummy handler
* for that packet type into the kernel. Because the packet handlers
* are stored in a hash table, we'll be able to pull the original
* ip packet handler out of the list that dummy_pt was inserted into.*/
memset(&dummy_pt, 0, sizeof(dummy_pt));
dummy_pt.type = htons(ETH_P_IP);
dummy_pt.func = recv_ip_packet_handler;

/* if we don't have a binding, this is a new device that
* has been brought up while the tunnel is up. For now,
* just pass the packet
*/
if (!pBinding)
{
static int firsttime = 1;
if (firsttime)
{
printk(KERN_DEBUG "RECV: new dev %s detected\n", dev->name);
firsttime = 0;
}
rc2 = original_ip_handler.orig_handler_func(skb, dev, type);
goto exit_gracefully;
}

#ifdef MOD_INC_AND_DEC
MOD_INC_USE_COUNT;
#endif
pBinding = getbindingbydev(dev);
/* if we don't have a binding, this is a new device that
* has been brought up while the tunnel is up. For now,
* just drop the packet.
*/
if (!pBinding)
{
static int firsttime = 1;
if (firsttime)
{
printk(KERN_DEBUG "XMIT: new dev %s detected\n", dev->name);
firsttime = 0;
}
dev_kfree_skb(skb);
goto exit_gracefully;
}

I tried the code you have posted and I could not get it to work but i went to http://www.anomalistic.org/ and downloaded vpnclient-deadlock-fix-4.0.3.B-k9.patch and it works great. Thanks for posting this. The vpn client is much more stable on 26 than 24.

Well thanks eugene for doing the work but I'm sure glad C++boar posted it cause I would not have found it. Incedentially eugene, I loved the stuff about Xforwarding with windows. I have a nortel vpn I have to go through and your method did the trick.

Originally posted by labradog Well thanks eugene for doing the work but I'm sure glad C++boar posted it cause I would not have found it. Incedentially eugene, I loved the stuff about Xforwarding with windows. I have a nortel vpn I have to go through and your method did the trick.

Hi Engene and Boar,
I am from NUS just like Engene. I am also in my last year. However my involvements in Freshman Camp requires me to be connected the School Network. In my school, the only way for connection to internet is thru the vpn....
And Just like Boar I seek answer on internet. However I downloaded vpnclient from NUS webpage and Engene's webpage. (On 23 Apr 2004) But it did not work with the Mandrake 10....
I have tried the patches Deadlock and Debian. But it indicated they are applied already.

Below is my error msg when run the install program...
Hope to hear from any one of you soon

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.

For RedHat 6.x users these files are installed in /usr/src/linux by default
For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default

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