* [LARTC] iptables -m limit
@ 2002-09-17 8:29 Ciprian Niculescu
2002-09-17 9:27 ` Eric Leblond
0 siblings, 1 reply; 2+ messages in thread
From: Ciprian Niculescu @ 2002-09-17 8:29 UTC (permalink / raw)
To: lartc
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
the results are:
62992 16M all -- eth0 * 0.0.0.0/0
0.0.0.0/0 limit: avg 10000/sec burst 5
62993 16M all -- eth0 * 0.0.0.0/0
0.0.0.0/0 limit: avg 10000/sec burst 5
why the ! argument dont work???? and is accepted
C
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] iptables -m limit
2002-09-17 8:29 [LARTC] iptables -m limit Ciprian Niculescu
@ 2002-09-17 9:27 ` Eric Leblond
0 siblings, 0 replies; 2+ messages in thread
From: Eric Leblond @ 2002-09-17 9:27 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 643 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-17 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-17 8:29 [LARTC] iptables -m limit Ciprian Niculescu
2002-09-17 9:27 ` Eric Leblond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox