Bandwidth limiting for eMule ports
Michael Ranner
mranner at jawa.at
Thu Jan 22 04:51:37 PST 2004
Am Donnerstag, 22. Januar 2004 05:19 schrieb Ganbold:
> Hi,
>
> I'm still having trouble limiting bandwidth for emule ports using dummynet
> features.
> I'm using FreeBSD 5.2-current machine for firewall. It has 2 Intel pro 100
> cards and it is configured as a bridge.
>
> I'm doing bandwidth limiting in the following way:
>
> # eMule
> ${fwcmd} pipe 59 config bw 256kbit/s
> ${fwcmd} pipe 60 config bw 256kbit/s
> ${fwcmd} pipe 61 config bw 128kbit/s
>
> ${fwcmd} add 80 pipe 59 ip from 202.179.x.x/19 to any
> 2323,4242,4243,4661-4672,7700-7800
> ${fwcmd} add 81 pipe 60 ip from any 2323,4242,4243,4661-4672,7700-7800 to
> 202.179.x.x/19
> ${fwcmd} add 82 pipe 61 ip from any to 202.179.x.x/19
> 2323,4242,4243,4661-4672,7700-7800
Because emule bittorrent seems to use almost any midrange port greater 1024,
I use the following rules to limit the bandwith for such tools for a single
machine very effectively:
#${fwcmd} add count all from any to any via ${oif}
${fwcmd} add pipe 3 tcp from ${lupo} to any 1024-32768 via ${iif}
${fwcmd} add pipe 4 tcp from any 1024-32768 to ${lupo} via ${iif}
${fwcmd} pipe 3 config bw 64Kbit/s queue 10Kbytes
${fwcmd} pipe 4 config bw 160Kbit/s queue 30Kbytes
--
/\/\ichael Ranner
mranner at jawa.at - mranner at bitonline.cc - webmaster at mariazell.at
----------------------------------------------------------------------
JAWA Management Software GmbH - http://www.jawa.at/
Liebenauer Hauptstrasse 2oo - A-8041 Graz
Tel +43 316 403274 21 - Fax +43 316 403274 10
----------------------------------------------------------------------
Mariazell Online - http://www.mariazell.at/
----------------------------------------------------------------------
More information about the freebsd-ipfw
mailing list