From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Schumacher Subject: Can't confirm limit rule works with tcpdump output. Date: Thu, 29 Jul 2004 15:04:47 -0800 Sender: netfilter-admin@lists.netfilter.org Message-ID: <4109828F.90609@aptalaska.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Ok I have this rule in my firewall: iptables -A INPUT -p udp -d --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 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