Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] iptables + l7filter + 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
JarekG
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 160
Location: Poland | Birmingham [UK]

PostPosted: Mon Nov 12, 2007 11:02 pm    Post subject: [SOLVED] iptables + l7filter + kernel Reply with quote

Hi,
I've got a problem with enabling l7filter. I installed l7layer with protocols, I have inside the kernel l7filter options but when I add it and try to compile i've got a error message:
Code:
net/netfilter/xt_layer7.c:575: warning: initialization from incompatible pointer type
net/netfilter/xt_layer7.c:576: warning: initialization from incompatible pointer type
net/netfilter/xt_layer7.c: In function 'layer7_cleanup_proc':
net/netfilter/xt_layer7.c:585: error: 'proc_net' undeclared (first use in this function)
net/netfilter/xt_layer7.c:585: error: (Each undeclared identifier is reported only once
net/netfilter/xt_layer7.c:585: error: for each function it appears in.)
net/netfilter/xt_layer7.c: In function 'layer7_init_proc':
net/netfilter/xt_layer7.c:592: error: 'proc_net' undeclared (first use in this function)
make[2]: *** [net/netfilter/xt_layer7.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2

My kernel version is 2.6.24-rc2.
Do you know what version of kernel it is working on ? Or how to solve that problem ?
Thx for any help and advices.
Best regards,
JarekG
_________________
Pozdrawiam
Jarosław Grząbel
HERE I AM
Back to top
View user's profile Send private message
JarekG
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 160
Location: Poland | Birmingham [UK]

PostPosted: Fri Nov 16, 2007 2:29 pm    Post subject: Reply with quote

I did it.
The problem was the kernel I used was not supported.
Here is a l7filter website where is written what kernel is supported in patching - compiling - working
http://l7-filter.sourceforge.net/kernelcompat
but... unfortunately...Gentoo is not so perfect to automatic patch and compile l7filter alone with other kernel. For now it`s working only on 2.6.23.1 version. We must patch and compile kernel and iptables ourself. For those who don`t know how to do it is a howto site on the l7filter project webpage.

Still winning with Gentoo :P.

Have fun with l7filter and packet shaping :).
_________________
Pozdrawiam
Jarosław Grząbel
HERE I AM
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