From: Eric Leblond Date: Tue, 17 Sep 2002 09:27:57 +0000 Subject: Re: [LARTC] iptables -m limit MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-6seZvTekXltvit1j8EE0" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-6seZvTekXltvit1j8EE0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2002-09-17 at 10:29, Ciprian Niculescu wrote: > hy, >=20 > i want a iptables rule to match if a designated trafic is above x bps or=20 > pps, i try >=20 > iptm=3D"/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 --=20 =C9ric Leblond courriel : eric@regit.org --=-6seZvTekXltvit1j8EE0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9hvWdnxA7CdMWjzIRAsh0AJ4yjskTnDrmvR2+HLCEHD7MNwmVQgCeMuqD uAvP3fMr5+nVkHt8PHQMFtI= =pQQ/ -----END PGP SIGNATURE----- --=-6seZvTekXltvit1j8EE0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/