Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michele Petrazzo - Unipex srl <michele.petrazzo@unipex.it>
To: netfilter@lists.netfilter.org
Subject: Re: limit extension problem
Date: Mon, 16 Jul 2007 20:43:00 +0200	[thread overview]
Message-ID: <469BBC34.10306@unipex.it> (raw)
In-Reply-To: <20070716181156.GA5264@toystory.lan>

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

Franck Joncourt wrote:
> Is that what you are looking for :
> 
> iptables -A FORWARD -p icmp --icmp-type echo-request -m mark --mark 2 -j ACCEPT
> iptables -A FORWARD -p icmp -m limit --limit 20/min -j LOG_ICMP

Not really.
I want to log only 20 ping forwarded on a minute. May be that I need to
invert those lines? I think yes!

iptables -A FORWARD -p icmp -m limit --limit 20/min -j LOG_ICMP
iptables -A FORWARD -p icmp --icmp-type echo-request -m mark --mark 2 -j 
ACCEPT

Michele

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3273 bytes --]

  reply	other threads:[~2007-07-16 18:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 16:51 limit extension problem Michele Petrazzo - Unipex srl
2007-07-16 18:11 ` Franck Joncourt
2007-07-16 18:43   ` Michele Petrazzo - Unipex srl [this message]
2007-07-17 18:25     ` Franck Joncourt

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=469BBC34.10306@unipex.it \
    --to=michele.petrazzo@unipex.it \
    --cc=netfilter@lists.netfilter.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