ipt_random status
Quoted 9 lines · Pascal Hambourg
Hello,
Quoted 3 lines · Stefano Sabatini
I'm interested in a random filtering rule for iptables: I read about the
ipt_randonextension, so I downloaded the patch-o-matic SVN but I checked that it has been removed from the trunk since revision 6568.The random function has been moved to the 'statistic' match, available since kernel 2.6.18 and iptables 1.3.6.
[...]
Thanks you so much, well I see:
iptables -m statistic --help
Shouldn't it be mentioned in the iptables man page?
http://ovid.rdsct.ro/log/modules/index
Best regards.
Signature · 2 lines
Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Hi all,
this is my first post here, so first of all many thanks for your great work on netfilter.
I'm interested in a random filtering rule for iptables: I read about the ipt_randon extension, so I downloaded the patch-o-matic SVN but I checked that it has been removed from the trunk since revision 6568.
So my question: is there a chance to see it supported again or do I have to try to manually patch the kernel with the latest SVN included version, and in this case how many are the chances to get it working?
I would like to help, but I'm far from being a linux hacker...
Finally, can you suggest some equivalent way to get the same effect with *BSD?
Thank you so much for your help.
Best regards.
Signature · 2 lines
Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Hello,
Quoted 4 lines · Stefano Sabatini
I'm interested in a random filtering rule for iptables: I read about the
ipt_randonextension, so I downloaded the patch-o-matic SVN but I checked that it has been removed from the trunk since revision 6568.
The random function has been moved to the 'statistic' match, available since kernel 2.6.18 and iptables 1.3.6.
Quoted 4 lines · Stefano Sabatini
iptables -m statistic --help
Shouldn't it be mentioned in the iptables man page?
Yes, it should. Patches are welcome.
Quoted 1 line
I can understand the author. Changes in Netfilter/iptables may be difficult to track, so I wrote for myself a sort of changelog.
Quoted 5 lines · Pascal Hambourg
Quoted 2 lines · Stefano Sabatini
iptables -m statistic --help
Shouldn't it be mentioned in the iptables man page?Yes, it should. Patches are welcome.
Here it is.
Can someone forward it to the devels?
Quoted 4 lines
Quoted 1 line
I can understand the author. Changes in Netfilter/iptables may be difficult to track, so I wrote for myself a sort of changelog.
Best regards.
Signature · 2 lines
Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
libxt_statistic.man +30 -0
@@ -0,0 +1,30 @@ +This module matches packets based on some statistic condition. +It supports two distinct modes settable with the +.B --mode +option. +.TP +Supported options: +.TP +.BI "--mode " "mode" +Set the matching mode of the matching rule, supported modes are +.B random +or +.B nth. +.TP +.BI "--probability " "p" +Set the probability from 0 to 1 for a packet to be randomly +matched. It works only with the +.B random +mode. +.TP +.BI "--every " "n" +Match one packet every nth packet. It works only with the +.B nth +mode (see also the +.B --packet +option). +.TP +.BI "--packet " "p" +Set the initial counter value (0 <= p <= n-1, default 0) for the +.B nth +mode.
Quoted 6 lines · Stefano Sabatini
Quoted 2 lines · Pascal Hambourg
Patches are welcome.
Here it is.
Can someone forward it to the devels?
Sorry, I forgot to mention that patches must be submitted to the netfilter-devel list.
Quoted 9 lines · Pascal Hambourg
Quoted 5 lines · Stefano Sabatini
Quoted 2 lines · Pascal Hambourg
Patches are welcome.
Here it is.
Can someone forward it to the devels?Sorry, I forgot to mention that patches must be submitted to the netfilter-devel list.
Ugh, I was trying to avoid that...
Regards.
Signature · 2 lines
Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Quoted 4 lines · Stefano Sabatini
Quoted 3 lines · Pascal Hambourg
Quoted 2 lines · Stefano Sabatini
Quoted 1 line · Pascal Hambourg
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Patches are welcome.
Here it is.
Can someone forward it to the devels?Sorry, I forgot to mention that patches must be submitted to the netfilter-devel list.
Ugh, I was trying to avoid that...
It got applied today :-).
Best regards.
Signature · 2 lines
Stefano Sabatini Linux user number 337176 (see http://counter.li.org)