From owner-freebsd-ipfw@FreeBSD.ORG Thu Jan 22 04:51:37 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCD7F16A4CE for ; Thu, 22 Jan 2004 04:51:37 -0800 (PST) Received: from jawa.at (jawa.at [213.229.17.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E10143D31 for ; Thu, 22 Jan 2004 04:51:35 -0800 (PST) (envelope-from mranner@jawa.at) Received: from mike.jawa.at (mike.jawa.at [192.168.200.51]) by jawa.at (8.12.9p2/8.12.8) with ESMTP id i0MCpVcj074794; Thu, 22 Jan 2004 13:51:32 +0100 (CET) (envelope-from mranner@jawa.at) From: Michael Ranner To: Ganbold Date: Thu, 22 Jan 2004 13:51:27 +0100 User-Agent: KMail/1.5 References: <6.0.1.1.2.20040122120552.0293bd20@202.179.0.80> In-Reply-To: <6.0.1.1.2.20040122120552.0293bd20@202.179.0.80> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401221351.27862.mranner@jawa.at> X-Virus-Scanned: by amavisd-new cc: freebsd-ipfw@freebsd.org Subject: Re: Bandwidth limiting for eMule ports X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 12:51:37 -0000 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/ ----------------------------------------------------------------------