Skip to contentSkip to conversation

string match patch

DISCUSSION Patrick 1 participant 1 message Jul 12, 2004 netfilter

lore
Share & tools
lore

Patrick

author
#0 lore raw

Hello,

I am worried .. after I upgraded my kernel to 2.4.27-rc3 I also noticed that theres a new iptables version ( 1.2.11 ) .. I updated it, after this I noticed that I forgot to patch my kernel with the pom-ng extra/string patch .. after I patched it I noticed that I dont have any new menu point nor do I have CONFIG_IP_NF_MATCH_STRING in my kernel config .. the patch pretends to be applied correctly, which I can also verify, because the header files are present.

After booting my new kernel I recompiled iptables .. it also built the libipt_string.so as it is supposed to .. to verify that its included successfully I used 'iptables -m string -h' which returns:

STRING match v1.2.11 options:
--string [!] string Match a string in a packet
--hex-string [!] string Match a hex string in a packet

It looks as if everything's correct, but it is not. I cant use the string match at all. Everytime I get the reply "iptables: No chain/target/match by that name" .. the syntax is correct .. e.g. the syntax from the example of the POM page:

iptables -A INPUT -m string --string 'cmd.exe' -j QUEUE
iptables: No chain/target/match by that name

I am not sure wether it has something to do with the kernel or not .. but I tried all kernels between 2.4.20 and 2.4.27-rc3 and the entry 'CONFIG_IP_NF_MATCH_STRING' did never appear ..

Any further help's appreciated

Sincerely yours
Patrick