From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 6 00:57:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E03E116A4CE; Tue, 6 Jan 2004 00:57:29 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4E1043D2D; Tue, 6 Jan 2004 00:57:27 -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.24; FreeBSD 5.1) id 1AdmxD-000Hyv-1l; Tue, 06 Jan 2004 16:52:47 +0800 Message-Id: <6.0.1.1.2.20040106165754.02a5b918@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: Tue, 06 Jan 2004 17:01:11 +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 Subject: dummynet question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 08:57:30 -0000 Hi, I'm using FreeBSD 5.2-current machine for firewall. It is configured as a bridged ipfw2 firewall. Also this machine works a a traffic shaper using ip dummynet features. I'm trying to limit bandwidth for some particular application, for example eMule p2p application. I'm doing it in the following way: # eMule ${fwcmd} pipe 59 config bw 256kbit/s ${fwcmd} pipe 60 config bw 256kbit/s ${fwcmd} add 80 pipe 59 ip from 202.179.x.x/19 to any 2323,4242,4243,4661-4672,7700-7800 in via fxp1 ${fwcmd} add 81 pipe 60 ip from any to 202.179.x.x/19 2323,4242,4243,4661-4672,7700-7800 in via fxp0 Am I doing right? tia, Ganbold