Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
To: Netfilter users mailing list <netfilter@vger.kernel.org>
Subject: Re: ipt_random status
Date: Sat, 10 Nov 2007 18:13:24 +0100	[thread overview]
Message-ID: <20071110171324.GC8300@geppetto> (raw)
In-Reply-To: <4730877C.9080102@plouf.fr.eu.org>

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

On date Tuesday 2007-11-06 16:25:48 +0100, Pascal Hambourg wrote:
> Stefano Sabatini a écrit :
>> 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?

>> http://ovid.rdsct.ro/log/modules/index
>
> 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.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)

[-- Attachment #2: document-xtstatistic.patch --]
[-- Type: text/x-diff, Size: 883 bytes --]

Index: extensions/libxt_statistic.man
===================================================================
--- extensions/libxt_statistic.man	(revision 0)
+++ extensions/libxt_statistic.man	(revision 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.

  reply	other threads:[~2007-11-10 17:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 15:07 ipt_random status Stefano Sabatini
2007-11-05 16:10 ` Pascal Hambourg
2007-11-05  9:32   ` Stefano Sabatini
2007-11-06 15:25     ` Pascal Hambourg
2007-11-10 17:13       ` Stefano Sabatini [this message]
2007-11-11 10:57         ` Pascal Hambourg
2007-11-11 11:32           ` Stefano Sabatini
2007-11-12 14:34             ` Stefano Sabatini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071110171324.GC8300@geppetto \
    --to=stefano.sabatini-lala@poste.it \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox