From: "Michal Kubeček" <mkubecek@suse.cz>
To: netfilter@vger.kernel.org
Subject: Re: regarding limit option and logging
Date: Wed, 12 Oct 2011 10:02:16 +0200 [thread overview]
Message-ID: <201110121002.16463.mkubecek@suse.cz> (raw)
In-Reply-To: <CA+f1OFq3vGS3ZiWB3q4Xe1gDVYm=MJ6Yi96pCYjn5y9qbxZoEQ@mail.gmail.com>
On Tuesday 11 of October 2011, Adishesh M wrote:
>
> I want to limit the number of packets logged to one packet per second
> (1/s). For this I am using below rules and it is not working.
>
> iptables -A INPUT -d 10.255.13.157 -m limit --limit 1/sec -j NFLOG
> --nflog-group 1
What exactly does "is not working" mean? My guess is that iptables
complains about missing --limit-burst value. If you really don't want
more than one message per second, try 1, but for a real-world
configuration I would suggest a bit more.
Michal Kubeèek
prev parent reply other threads:[~2011-10-12 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-11 16:10 regarding limit option and logging Adishesh M
2011-10-12 8:02 ` Michal Kubeček [this message]
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=201110121002.16463.mkubecek@suse.cz \
--to=mkubecek@suse.cz \
--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