Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: string matching in kernel 2.6
  2005-07-21  4:56 string matching in kernel 2.6 muhaimin
@ 2005-07-21  2:09 ` Ming-Ching Tiew
  2005-07-21  3:17   ` Ming-Ching Tiew
  0 siblings, 1 reply; 11+ messages in thread
From: Ming-Ching Tiew @ 2005-07-21  2:09 UTC (permalink / raw)
  To: netfilter


From: "muhaimin" <muhaimin.dzulfakar@extol.com.my>


> 
> I found netfilter in kernel 2.6 doesnt support packet 
> string-matching.How do i make it works in kernel 2.6?
> 

I think it suffers the same problem with the ipt_random patch, 
so you could just create a patch yourself by duplicating what's 
in the 2.4 patch and change the info file accordingly.

Cheers.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  2:09 ` Ming-Ching Tiew
@ 2005-07-21  3:17   ` Ming-Ching Tiew
  2005-07-21  6:13     ` Jan Engelhardt
  2005-07-21  7:03     ` Jozsef Kadlecsik
  0 siblings, 2 replies; 11+ messages in thread
From: Ming-Ching Tiew @ 2005-07-21  3:17 UTC (permalink / raw)
  To: netfilter


From: "Ming-Ching Tiew" <mingching.tiew@redtone.com>

> 
> From: "muhaimin" <muhaimin.dzulfakar@extol.com.my>
> 
> > I found netfilter in kernel 2.6 doesnt support packet 
> > string-matching.How do i make it works in kernel 2.6?
> > 
> 
> I think it suffers the same problem with the ipt_random patch, 
> so you could just create a patch yourself by duplicating what's 
> in the 2.4 patch and change the info file accordingly.
> 

You could also use this patch instead :-

https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017892.html





^ permalink raw reply	[flat|nested] 11+ messages in thread

* string matching in kernel 2.6
@ 2005-07-21  4:56 muhaimin
  2005-07-21  2:09 ` Ming-Ching Tiew
  0 siblings, 1 reply; 11+ messages in thread
From: muhaimin @ 2005-07-21  4:56 UTC (permalink / raw)
  To: netfilter


I found netfilter in kernel 2.6 doesnt support packet 
string-matching.How do i make it works in kernel 2.6?

-- 
Muhaimin Dzulfakar
Security Engineer
Extol Corporation (M) Sdn Bhd



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  3:17   ` Ming-Ching Tiew
@ 2005-07-21  6:13     ` Jan Engelhardt
  2005-07-21  6:32       ` Ming-Ching Tiew
  2005-07-21  7:03     ` Jozsef Kadlecsik
  1 sibling, 1 reply; 11+ messages in thread
From: Jan Engelhardt @ 2005-07-21  6:13 UTC (permalink / raw)
  To: Ming-Ching Tiew; +Cc: netfilter

>> > I found netfilter in kernel 2.6 doesnt support packet 
>> > string-matching.How do i make it works in kernel 2.6?
>> 
>> I think it suffers the same problem with the ipt_random patch, 
>> so you could just create a patch yourself by duplicating what's 
>> in the 2.4 patch and change the info file accordingly.
>> 
>
>You could also use this patch instead :-
>https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017892.html
[ipt_string]


If neither works, you can try abusing ipt_layer7 ;-)
See http://l7-filter.sf.net/



Jan Engelhardt
-- 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  6:13     ` Jan Engelhardt
@ 2005-07-21  6:32       ` Ming-Ching Tiew
  2005-07-21  6:45         ` Jan Engelhardt
  0 siblings, 1 reply; 11+ messages in thread
From: Ming-Ching Tiew @ 2005-07-21  6:32 UTC (permalink / raw)
  To: netfilter


From: "Jan Engelhardt" <jengelh@linux01.gwdg.de>
> 
> If neither works, you can try abusing ipt_layer7 ;-)
> See http://l7-filter.sf.net/
> 

Not sure if you want to use an electric saw to cut the bread.

Cheers.








^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  6:32       ` Ming-Ching Tiew
@ 2005-07-21  6:45         ` Jan Engelhardt
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Engelhardt @ 2005-07-21  6:45 UTC (permalink / raw)
  To: Ming-Ching Tiew; +Cc: netfilter


>> If neither works, you can try abusing ipt_layer7 ;-)
>> See http://l7-filter.sf.net/
>
>Not sure if you want to use an electric saw to cut the bread.

If you don't have anything else, this is the best temporary solution.


Jan Engelhardt
-- 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  3:17   ` Ming-Ching Tiew
  2005-07-21  6:13     ` Jan Engelhardt
@ 2005-07-21  7:03     ` Jozsef Kadlecsik
  2005-07-21  7:11       ` Ming-Ching Tiew
  1 sibling, 1 reply; 11+ messages in thread
From: Jozsef Kadlecsik @ 2005-07-21  7:03 UTC (permalink / raw)
  To: Ming-Ching Tiew; +Cc: netfilter

On Thu, 21 Jul 2005, Ming-Ching Tiew wrote:

> > From: "muhaimin" <muhaimin.dzulfakar@extol.com.my>
> >
> > > I found netfilter in kernel 2.6 doesnt support packet
> > > string-matching.How do i make it works in kernel 2.6?
>
> You could also use this patch instead :-
>
> https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017892.html

That patch is not complete because it does not handle non-linear packets.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  7:03     ` Jozsef Kadlecsik
@ 2005-07-21  7:11       ` Ming-Ching Tiew
  2005-07-21  7:38         ` Jozsef Kadlecsik
  0 siblings, 1 reply; 11+ messages in thread
From: Ming-Ching Tiew @ 2005-07-21  7:11 UTC (permalink / raw)
  To: netfilter


From: "Jozsef Kadlecsik" <kadlec@blackhole.kfki.hu>
> >
> > You could also use this patch instead :-
> >
> > https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017892.html
> 
> That patch is not complete because it does not handle non-linear packets.
> 

But it is almost identical source as the 2.4 version, meaning the 2.4 version 
is also not able to handle the so called non-linear packets then ?

Cheers





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-21  7:11       ` Ming-Ching Tiew
@ 2005-07-21  7:38         ` Jozsef Kadlecsik
  0 siblings, 0 replies; 11+ messages in thread
From: Jozsef Kadlecsik @ 2005-07-21  7:38 UTC (permalink / raw)
  To: Ming-Ching Tiew; +Cc: netfilter

On Thu, 21 Jul 2005, Ming-Ching Tiew wrote:

> > > https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017892.html
> >
> > That patch is not complete because it does not handle non-linear packets.
>
> But it is almost identical source as the 2.4 version, meaning the 2.4 version
> is also not able to handle the so called non-linear packets then ?

No, the 2.4 version of the module is fine in the 2.4 tree. However the
internal packet handling in the IP stack changed between 2.4 and 2.6. This
is the reason why modules need porting. Just copying the files and
adjusting the function arguments are not enough.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
@ 2005-07-25  3:33 Ming-Ching Tiew
  2005-07-25  6:17 ` Jan Engelhardt
  0 siblings, 1 reply; 11+ messages in thread
From: Ming-Ching Tiew @ 2005-07-25  3:33 UTC (permalink / raw)
  To: netfilter


> 
> From: "Jan Engelhardt" <jengelh@linux01.gwdg.de>
> > 
> > If neither works, you can try abusing ipt_layer7 ;-)
> > See http://l7-filter.sf.net/
> > 
> 

I had a quick look at the source of ipt_layer7, it's linearising 
the skb so that the pattern can be matched. For ipp2p, it simply 
skip the non-linear skb (and it has been accepted into pom-ng).

So I think it should be quite easy if one wants to also handle 
the non-linear case, ie just linearise the skb. Not efficient, but
it should work. Right ?

Cheers.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: string matching in kernel 2.6
  2005-07-25  3:33 Ming-Ching Tiew
@ 2005-07-25  6:17 ` Jan Engelhardt
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Engelhardt @ 2005-07-25  6:17 UTC (permalink / raw)
  To: Ming-Ching Tiew; +Cc: netfilter

>> > If neither works, you can try abusing ipt_layer7 ;-)
>> > See http://l7-filter.sf.net/
>
>I had a quick look at the source of ipt_layer7, it's linearising 
>the skb so that the pattern can be matched. For ipp2p, it simply 

A right, yes, it linearizes, but only for the first 2048 bytes (the default 
buffer size). But anyway, what if in these first 2048 bytes two rules would 
match? You'd anyway get nonpredictable results.


Jan Engelhardt
-- 


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-07-25  6:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21  4:56 string matching in kernel 2.6 muhaimin
2005-07-21  2:09 ` Ming-Ching Tiew
2005-07-21  3:17   ` Ming-Ching Tiew
2005-07-21  6:13     ` Jan Engelhardt
2005-07-21  6:32       ` Ming-Ching Tiew
2005-07-21  6:45         ` Jan Engelhardt
2005-07-21  7:03     ` Jozsef Kadlecsik
2005-07-21  7:11       ` Ming-Ching Tiew
2005-07-21  7:38         ` Jozsef Kadlecsik
  -- strict thread matches above, loose matches on Subject: below --
2005-07-25  3:33 Ming-Ching Tiew
2005-07-25  6:17 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox