Date: Thu, 22 Jan 2004 13:51:27 +0100 From: Michael Ranner <mranner@jawa.at> To: Ganbold <ganbold@micom.mng.net> Cc: freebsd-ipfw@freebsd.org Subject: Re: Bandwidth limiting for eMule ports Message-ID: <200401221351.27862.mranner@jawa.at> In-Reply-To: <6.0.1.1.2.20040122120552.0293bd20@202.179.0.80> References: <6.0.1.1.2.20040122120552.0293bd20@202.179.0.80>
next in thread | previous in thread | raw e-mail | index | archive | help
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@jawa.at - mranner@bitonline.cc - webmaster@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/ ----------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401221351.27862.mranner>