From: Matthew Schumacher <matt.s@aptalaska.net>
To: netfilter@lists.netfilter.org
Subject: Can't confirm limit rule works with tcpdump output.
Date: Thu, 29 Jul 2004 15:04:47 -0800 [thread overview]
Message-ID: <4109828F.90609@aptalaska.net> (raw)
Ok I have this rule in my firewall:
iptables -A INPUT -p udp -d <HOSTA> --dport 1646 -m limit ! --limit
10/sec --limit-burst 20 -j LOG --log-prefix "IPTABLES Radius limit: "
From what I have read this should create a bucket that can hold 20
tokens and fill it at a rate of 10 tokens per second. For every packet
with the DST address <HOSTA> on port 1646 take a token out of the
bucket. If the bucket is completely empty then match (because of
negation) and process the LOG target.
This is not what happens because my tcpdump output shows nothing close
to 10 packets per second yet the rule matches and logs.
I know I'm missing something here can someone point it out to me?
Thanks,
schu
reply other threads:[~2004-07-29 23:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4109828F.90609@aptalaska.net \
--to=matt.s@aptalaska.net \
--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