Skip to contentSkip to conversation

string matching in kernel 2.6

DISCUSSION muhaimin 4 participants 9 messages Jul 21, 2005

lore
Share & tools
lore
#1 lore raw
In reply to muhaimin

From: "muhaimin" <[email protected]>

Quoted 4 lines

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.

#2 lore raw

From: "Ming-Ching Tiew" <[email protected]>

Quoted 11 lines

From: "muhaimin" <[email protected]>

Quoted 3 lines

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

muhaimin

author
#0 lore raw

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

Signature · 3 lines
Muhaimin Dzulfakar
Security Engineer
Extol Corporation (M) Sdn Bhd
#3 lore raw
In reply to Ming-Ching Tiew
Quoted 10 lines
Quoted 7 lines
Quoted 2 lines

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

#5 lore raw
Quoted 5 lines
Quoted 3 lines

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

#6 lore raw
In reply to Ming-Ching Tiew
Quoted 8 lines · Ming-Ching Tiew
Quoted 4 lines

From: "muhaimin" <[email protected]>

Quoted 2 lines

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 : [email protected], [email protected] 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
#8 lore raw
Quoted 6 lines · Ming-Ching Tiew
Quoted 3 lines
Quoted 1 line

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 : [email protected], [email protected] 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