Re: pps limit ?

Linux Advanced Routing and Traffic Control

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

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


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