From owner-freebsd-ipfw@FreeBSD.ORG Wed Jan 21 20:15:22 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 ED82116A4CE; Wed, 21 Jan 2004 20:15:22 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF8D443D2D; Wed, 21 Jan 2004 20:15:20 -0800 (PST) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with asmtp (Exim 4.30; FreeBSD) id 1AjWC5-000FaJ-LC; Thu, 22 Jan 2004 12:11:49 +0800 Message-Id: <6.0.1.1.2.20040122120552.0293bd20@202.179.0.80> X-Sender: ganbold@micom.mng.net@202.179.0.80 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Thu, 22 Jan 2004 12:19:17 +0800 To: freebsd-ipfw@freebsd.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-hackers@freebsd.org cc: rizzo@icir.org Subject: 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 04:15:23 -0000 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 Am I doing right? For what NIC should I implement filtering, outside or inside interface? When I see MRTG graphs for ipfw it still shows bandwidth more than it supposed to:( I really hope somebody in this list point me to the right direction. thanks in advance, Ganbold