From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kajetan Staszkiewicz Date: Wed, 30 Aug 2006 15:22:27 +0000 Subject: Re: [LARTC] pps limit ? Message-Id: <200608301722.27174.kajtek@biezanow.net> List-Id: References: <20060830140726.GA24152@ldc.net> In-Reply-To: <20060830140726.GA24152@ldc.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Dnia =B6roda, 30 sierpnia 2006 16:07, Dmytro O. Redchuk napisa=B3(a):=20 > Hello, list members, > > can i limit pps rate with linux? How? > > -m limit does not fit, as i understood: it can help with low rates only > (is that true? any suggestions?) Maybe hashlimit? What do you exactly need to do? Here's what I use to rate pps for every host in network. In fact this is on= =20 2.4 kernel with dstlimit (with some changes in source), but hashlimit works= =20 in the same way. $IPT -t mangle -I FORWARD -i eth1 -j LIMITPAK $IPT -t mangle -A LIMITPAK -i eth1 -s 192.168.0.0/24 -m dstlimit --dstlimit= =20 75 --dstlimit-burst 200 --dstlimit-mode srcip --dstlimit-name eth1_0.0 -j = RETURN $IPT -t mangle -A LIMITPAK -i eth1 -s 192.168.0.0/24 -j DROP $IPT -t mangle -A LIMITPAK -j RETURN --=20 | pozdrawiam / greetings | powered by Trustix, Gentoo and FreeBSD | | Kajetan Staszkiewicz | jabber,email,www: vegeta()tuxpowered net | | Vegeta | IMQ devnames: http://www.tuxpowered.net | `------------------------^------------------------------------------' _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc