string match patch
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
Quoted 4 lines · Patrick
after I patched it I noticed that I dont have any
new menu point nor do I haveCONFIG_IP_NF_MATCH_STRINGin my kernel config .. the patch pretends to be applied correctly, which I can also verify, because the header files are present.
You SHOULD have a new menu entries for the string match..
dep_tristate ' String match support (EXPERIMENTAL)' CONFIG_IP_NF_MATCH_STRING $CONFIG_IP_NF_IPTABLES
If you do not, and or else do not have CONFIG_IP_NF_MATCH_STRING defined in your kernel configuration then the string match won't be build, and hence won't work.
Which version of pom-ng are you using?
Regards
Henrik
Hello,
yes I know that I am supposed to have new menu entries .. but as I said the patch pretends to be applied correctly and also the header files are copied .. I am using most recent version of pom-ng, thus "patch-o-matic-ng-20040621"
I also tried the old stable version of patch-o-matic-20031219 .. which did not work either :|
Regards
Patrick
----- Original Message -----
From: "Henrik Nordstrom" <[email protected]>
To: "Patrick" <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 12, 2004 11:51 PM
Subject: Re: string match patch
Quoted 10 lines · Patrick
Quoted 5 lines
after I patched it I noticed that I dont have any
new menu point nor do I haveCONFIG_IP_NF_MATCH_STRINGin my kernel config .. the patch pretends to be applied correctly, which I can also verify, because the header files are present.You SHOULD have a new menu entries for the string match..
dep_tristate' String match support (EXPERIMENTAL)'
CONFIG_IP_NF_MATCH_STRING $CONFIG_IP_NF_IPTABLES
Quoted 12 lines
If you do not, and or else do not have
CONFIG_IP_NF_MATCH_STRINGdefined in your kernel configuration then the string match won't be build, and hence won't work.Which version of pom-ng are you using?
Regards
Henrik
Quoted 6 lines · Patrick
yes I know that I am supposed to have new menu entries .. but as I said the patch pretends to be applied correctly and also the header files are copied .. I am using most recent version of pom-ng, thus "patch-o-matic-ng-20040621"
I also tried the old stable version of patch-o-matic-20031219 .. which did not work either :|
Seems to be some bug in the pom-ng runme script..
There is a .ladd file for adding the menu entry, but for some reason it does not get added and the runme does not complain either..
For now manually add the missing menu entry.
Regards
Henrik
Quoted 10 lines · Henrik Nordstrom
Quoted 6 lines · Patrick
yes I know that I am supposed to have new menu entries .. but as I said the patch pretends to be applied correctly and also the header files are copied .. I am using most recent version of pom-ng, thus "patch-o-matic-ng-20040621"
I also tried the old stable version of patch-o-matic-20031219 .. which did not work either :|Seems to be some bug in the pom-ng runme script..
Err.. False alarm. I was looking in the wrong tree after running runme. runme seems to work just fine here.
Make sure you have CONFIG_EXPERIMENTAL enabled. ipt_string is marked as an experimental extension and won't show up in the config menu unless CONFIG_EXPERIMENTAL is enabled in your kernel config.
Regards
Henrik
Damnit :D that fixed it. Thank you :-)
regards
Patrick
----- Original Message -----
From: "Henrik Nordstrom" <[email protected]>
To: "Patrick" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, July 13, 2004 2:51 AM
Subject: Re: string match patch
Quoted 5 lines · Henrik Nordstrom
Quoted 4 lines · Patrick
Quoted 2 lines
yes I know that I am supposed to have new menu entries .. but as I
said the
Quoted 1 line
Quoted 1 line
Quoted 1 line
patch pretends to be applied correctly and also the header files are
copied
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
.. I am using most recent version of pom-ng, thus "patch-o-matic-ng-20040621"
I also tried the old stable version of patch-o-matic-20031219 .. which
did
Quoted 16 lines
Quoted 3 lines
Quoted 1 line
not work either :|
Seems to be some bug in the pom-ng runme script..
Err.. False alarm. I was looking in the wrong tree after running runme. runme seems to work just fine here.
Make sure you have
CONFIG_EXPERIMENTALenabled.ipt_stringis marked as an experimental extension and won't show up in the config menu unlessCONFIG_EXPERIMENTALis enabled in your kernel config.Regards
Henrik
Hello,
I tried this, but everytime I run a 'make oldconfig' or a make menuconfig the entry gets erased for some reason ..
regards
Patrick
----- Original Message -----
From: "Henrik Nordstrom" <[email protected]>
To: "Patrick" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, July 13, 2004 2:33 AM
Subject: Re: string match patch
Quoted 3 lines · Patrick
Quoted 2 lines
yes I know that I am supposed to have new menu entries .. but as I said
the
Quoted 1 line
Quoted 1 line
patch pretends to be applied correctly and also the header files are
copied
Quoted 3 lines
Quoted 3 lines
.. I am using most recent version of pom-ng, thus "patch-o-matic-ng-20040621"
I also tried the old stable version of patch-o-matic-20031219 .. which
did
Quoted 14 lines
Quoted 1 line
not work either :|
Seems to be some bug in the pom-ng runme script..
There is a .ladd file for adding the menu entry, but for some reason it does not get added and the runme does not complain either..
For now manually add the missing menu entry.
Regards
Henrik
limiting bandwidth using qdisc alone
In reply to Henrik NordstromI want to limit the bandwidth of my outgoing interfaces for all traffic but do not want to use shapecfg and shaper. My question is that can I use qdisc instead. As far as my understanding, I just have to specify a qdisc (preferably HTB) on the interface, limit the bandwidth and allow all traffic to go through it, without any iptables marking. Is this possible and efficient way to do what I want? Or does anybody have a better solution for this?
Regards,
Muhammad R. Sami
Research Assistant,
Computer Engineering Department
P.O.Box 354
King Fahd University of Petroleum & Minerals
Dhahran 31261
Saudi Arabia.
Tel: +96638601423
Cell: +96657982951
www.ccse.kfupm.edu.sa/sami
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Henrik Nordstrom
Sent: Tuesday, July 13, 2004 12:51 AM
To: Patrick
Cc: [email protected]
Subject: Re: string match patch
Quoted 4 lines · Patrick
after I patched it I noticed that I dont have any
new menu point nor do I haveCONFIG_IP_NF_MATCH_STRINGin my kernel config .. the patch pretends to be applied correctly, which I can also verify, because the header files are present.
You SHOULD have a new menu entries for the string match..
dep_tristate ' String match support (EXPERIMENTAL)'CONFIG_IP_NF_MATCH_STRING $CONFIG_IP_NF_IPTABLES
If you do not, and or else do not have CONFIG_IP_NF_MATCH_STRING defined in your kernel configuration then the string match won't be build, and hence won't work.
Which version of pom-ng are you using?
Regards
Henrik
Re: limiting bandwidth using qdisc alone
Quoted 3 lines · Muhammad R. Sami
I want to limit the bandwidth of my outgoing interfaces for all traffic but do not want to use shapecfg and shaper. My question is that can I use qdisc instead.
It is what they are meant to be used for.
Regards
Henrik