Page 1 of 2

4.8.02 - 64-bit patch on 2.6.25

PostPosted: Thu Jul 10, 2008 1:21 am
by birdman
If anyone is interested I've patched 4.8.02 to run on kernel 2.6.25, 64-bit. Basically the cisco_skbuff_offset.patch generalized to use the 32-/64-bit function calls that came in at 2.6.22
and fixing some bugs (I think) in that patch along the way.

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Sat Jul 12, 2008 6:08 pm
by iakoma
Hi birdman,
Yes I'm interested to run vpnclient on kernel 2.6.25, 64-bit.
I was not able to find out 4.8.02 (I've only 'vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz' and doesn't work against 2.6.25, 64-bit included the patches vpnclient-linux-2.6.24.diff & cisco_skbuff_offset.patch).

My linux box is ArchLinux 64 bit.

Tks in advance for your help.
:lol:

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Sat Jul 12, 2008 7:31 pm
by iakoma
Hi again,
just for info I've found here 'http://www.lan.kth.se/vpn/bin/?M=D' the 4.8.02 client, apply the patch, but the result no change.

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Sun Jul 13, 2008 11:25 pm
by birdman
You'll find my 64-bit patches (for both 4.8.01 and 4.8.02) at:

http://birdman.dynalias.org/CiscoVPN/

[(the download will say it's a binary file, but it is just a text patch file)] (Changed - it now knows it's a text file, so a browser will just display it now - you can use "Save as" to download it).

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Mon Jul 14, 2008 9:20 pm
by iakoma
It' work.
Thanks a lot.
:wink:

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Tue Jul 15, 2008 2:22 am
by birdman
Just checked - the 4.8.02 patch works on 2.6.26 too. I'll update the web page to note this.

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Wed Dec 03, 2008 1:04 am
by birdman
Also now known to work on 2.6.27.4...

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Wed Jan 14, 2009 1:25 pm
by leteci
I have 4.8.02.0030 version vpn client and kernel version is 2.26.27-11

When i try to run vpn get this message: the profile specified could not be read?

Any suggestion?

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Wed Jan 21, 2009 9:57 pm
by tuxx-home.at
How did you invoke the client?

If the profile file resides in /etc/opt/cisco-vpnclient/Profiles/test.pcf, you need to execute:

vpnclient connect test

instead of

vpnclient connect test.pcf

or something like this.
Oh, and, all profiles _HAVE_ to be in the above mentioned directory, so copy them over to this destination if not done already.

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Fri Jan 30, 2009 4:14 pm
by leomanic
I can confirm your patch makes compiling work fine on kernel 2.6.27-11 , ubuntu intrepid.

thanks for the effort :)

lennard

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Thu Feb 05, 2009 2:09 pm
by tuxx-home.at
Stephen, I got this via e-mail:

Alex, thank you for your site. I found an error in the patch from
Stephen Frost for 64-bit systems for version 4.8.01.0640.

In file interceptor.c, line 655 (after the patch has been incorporated)
which reads:

skb->mac_header,

needs to be changed to this:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
skb->mac_header,
#else
skb->mac.raw,
#endif

Regards,

-Tom


Please update your patch accordingly so that it compiles on older kernel versions too.
I fixed that in my local copies already:

4.8.01 64bit patch:
[http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-4.8.01-64bit.patch]

4.8.02 64bit patch:
[http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-4.8.02-64bit.patch]

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Fri Feb 27, 2009 4:28 am
by sfsob
Thank you so much! Working on 2.27-11 (ubuntu 8.10 64bit).

To summarize:

You need 2 files:
vpnclient-linux-x86_64-4.8.02.003.k9.tar
4.8.02-64bit.patch
Steps:
tar xvf vpnclient-linux-x86_64-4.8.02.003.k9.tar
cd vpnclient
sudo ./vpn_install
sudo /etc/init.d/vpnclient_init start
cp YourConfigFile.pcf /etc/opt/cisco-vpnclient/Profiles/
vpnclient connect YourConfigFile (no filename extension!!!)
vpnclient disconnect to exit

Note: You can get the .pcf file from a pc that has the cisco vpn client installed on it.
Note: My org uses a different GroupName in the pcf file for linux than they use for windows - windows clients are required to have virus and firewall software.

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Fri Feb 27, 2009 4:31 am
by sfsob
Forgot the patch step
Just before running vpn_install...
patch < ./patch 4.8.02-64bit.patch

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Tue Mar 10, 2009 7:33 am
by aweng
sfsob wrote:You need 2 files:
vpnclient-linux-x86_64-4.8.02.003.k9.tar
4.8.02-64bit.patch


Just want to confirm it - do I still need to patch vpnclient-linux-2.6.24-final.diff?? I am also running on ubuntu 8.10 64bit

I can install successfully ONLY use the 4.8.02-64bit.patch and VPN is connected. but the system is locked after access any computer in VPN.

I am also using wireless to connect VPN.

thanks

Re: 4.8.02 - 64-bit patch on 2.6.25

PostPosted: Tue Mar 10, 2009 8:43 pm
by tuxx-home.at
no, you do not need the 2.6.24 patch, but you will need the hyperthreading workaround mentionend in the topic below:

[http://forum.tuxx-home.at/viewtopic.php?f=15&t=457]