Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
freeswan and kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Thu Dec 04, 2003 5:39 pm    Post subject: freeswan and kernel Reply with quote

I'm trying to emerge freeswan 2.04 but I'm getting this message:

Code:

Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/freeswan-2.04 to /
>>> md5 src_uri ;-) freeswan-2.04.tar.gz
>>> md5 src_uri ;-) x509-1.4.8-freeswan-2.04.tar.gz
You need to have the crypto-enabled version of Gentoo Sources
with a symlink to it in /usr/src/linux in order to have IPSec
kernel compatibility.


The kernel I'm using I downloaded from kernel.org and applied the ben-h patches. So it's not emerged from the gentoo sources. What do I have to do to get my current kernel patched up with whatever it is freeswan needs without having to emerge the gentoo sources?

My current kernel is 2.4.23-pre5-ben0


Thanks.
Back to top
View user's profile Send private message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Fri Dec 05, 2003 7:15 pm    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
muphicks
n00b
n00b


Joined: 22 Nov 2003
Posts: 48

PostPosted: Fri Dec 05, 2003 11:30 pm    Post subject: Reply with quote

Can't help, but I'm also getting the same error.

I've emerged the 2.6 development kernel and done a custom compile of it. I can't find any further kernel flags I need to set. Is there something else been missed here?
Back to top
View user's profile Send private message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Sat Dec 06, 2003 2:43 am    Post subject: Reply with quote

Out of desperation I went ahead and emerged ppc-sources-crypto. Installed it, rebuilt the kernel, did an emerge on freeswan and got the same error. /usr/src/linux is a symlink to ppc-sources-crypto.
Back to top
View user's profile Send private message
tphamm
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2003
Posts: 112
Location: Saskatoon, SK, CA

PostPosted: Sat Dec 06, 2003 4:01 am    Post subject: Reply with quote

The latest gentoo-sources-2.4.22-r1 has the IPSec patches applied. The option to enable is the very last one under "Networking options". Other than that, you may have to open up the freeswan sources yourself and follow the instructions within to patch your own kernel.
_________________
"This is a UNIX system! I know this!" -- little girl from dinasaur park
Back to top
View user's profile Send private message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Sat Dec 06, 2003 5:18 am    Post subject: Reply with quote

Thank you, I'll give this a shot. However, wasn't there an exploit for kernels under 2.4.22 and under?
Back to top
View user's profile Send private message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Sat Dec 06, 2003 5:34 am    Post subject: Reply with quote

Hi, I tried it and I don't see anything on IPSec under Networking Options. This was for ppc-sources-2.4.22-r3 Is there a certain USE flag that I have to set/unset?
Back to top
View user's profile Send private message
FlashLight
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 106

PostPosted: Sun Dec 07, 2003 4:59 am    Post subject: Reply with quote

Ok, so I uninstalled ppc-sources and did emerge -p freeswan and it lists ppc-sources as one of its dependencies. Thinking that this would install the proper kernel that would get freeswan to install, I went ahead with it. It dies off with the same error after installing what it claimed to be the dependency. Is the dependency for it just wrong or...?
Back to top
View user's profile Send private message
BlackB1rd
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2003
Posts: 131
Location: /Europe/Netherlands/Haarlem

PostPosted: Fri Dec 12, 2003 3:37 pm    Post subject: Reply with quote

Got the same problem with kernel 2.6-test11-r1. Nobody knows a trick to get it working?
Back to top
View user's profile Send private message
cselkirk
Apprentice
Apprentice


Joined: 09 Jun 2003
Posts: 199
Location: NL

PostPosted: Sun Dec 14, 2003 11:34 pm    Post subject: USE="crypt" Reply with quote

For the ipsec patch to be applied you need to add "crypt" to your USE flags (in /etc/make.conf).

As for the OP: ppc-sources doesn't apply the freeswan kernel patch, but i wonder if infact freeswan was applied (via your attempt at using the freeswan sources) as it would create /usr/src/linux/net/ipsec, and the lack thereof tiggers the error. I use superfreeswan (now re-named "sfs") 2.04 and (patched) ppc sources .. running "make oldgo" in the sfs source tree (and I assume this is the same for freeswan) patched and built the new kernel and modules (note: I had previously configured the kernel, you may want to run "make menugo"). As already noted in this thread the ppc-sources-crypto suffer from a serious sercurity problem (namely the ptrace vunerability) so you are advised to stay clear of it.
_________________
cn=cselkirk,dc=xs4all,dc=nl
Back to top
View user's profile Send private message
numbaonestunna
n00b
n00b


Joined: 05 Mar 2003
Posts: 48

PostPosted: Wed Feb 25, 2004 6:57 pm    Post subject: Re: USE="crypt" Reply with quote

cselkirk wrote:
For the ipsec patch to be applied you need to add "crypt" to your USE flags (in /etc/make.conf).

As for the OP: ppc-sources doesn't apply the freeswan kernel patch, but i wonder if infact freeswan was applied (via your attempt at using the freeswan sources) as it would create /usr/src/linux/net/ipsec, and the lack thereof tiggers the error. I use superfreeswan (now re-named "sfs") 2.04 and (patched) ppc sources .. running "make oldgo" in the sfs source tree (and I assume this is the same for freeswan) patched and built the new kernel and modules (note: I had previously configured the kernel, you may want to run "make menugo"). As already noted in this thread the ppc-sources-crypto suffer from a serious sercurity problem (namely the ptrace vunerability) so you are advised to stay clear of it.


For which package? For kernel source you need "crypt" or for freeswan?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum