From: Kajetan Staszkiewicz <kajtek@biezanow.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] pps limit ?
Date: Wed, 30 Aug 2006 15:22:27 +0000 [thread overview]
Message-ID: <200608301722.27174.kajtek@biezanow.net> (raw)
In-Reply-To: <20060830140726.GA24152@ldc.net>
Dnia ¶roda, 30 sierpnia 2006 16:07, Dmytro O. Redchuk napisa³(a):
> 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
2.4 kernel with dstlimit (with some changes in source), but hashlimit works
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
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
--
| 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
next prev parent reply other threads:[~2006-08-30 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 14:07 [LARTC] pps limit ? Dmytro O. Redchuk
2006-08-30 15:22 ` Kajetan Staszkiewicz [this message]
2006-08-31 6:06 ` Dmytro O. Redchuk
2006-08-31 10:35 ` Roy-Magne Mo
2006-08-31 11:03 ` Dmytro O. Redchuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200608301722.27174.kajtek@biezanow.net \
--to=kajtek@biezanow.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox