Re: iptables -m limit

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2002-09-17 at 10:29, Ciprian Niculescu wrote:
> hy,
> 
> i want a iptables rule to match if a designated trafic is above x bps or 
>   pps, i try
> 
> iptm="/usr/local/sbin/iptables -t mangle"
> $iptm -A PREROUTING -i eth0 -m limit --limit 10000/sec
> $iptm -A PREROUTING -i eth0 -m limit ! --limit 10000/sec

you don't have to use the ! if you go to the second rules, this is
because you don't have match the first one, so you are over the limit.
So you can do :
$iptm -A PREROUTING -i eth0 -m limit --limit 10000/sec -j MYTARGET
iptm -A PREROUTING -i eth0 -j MYTARGET


-- 
Éric Leblond
courriel : eric@regit.org

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux