From owner-freebsd-ipfw@FreeBSD.ORG Tue Jan 6 01:39:52 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 DD81516A4CE; Tue, 6 Jan 2004 01:39:52 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C39B43D48; Tue, 6 Jan 2004 01:39:51 -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 1AdncF-000IC4-V5; Tue, 06 Jan 2004 17:35:12 +0800 Message-Id: <6.0.1.1.2.20040106174330.02935ab8@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:43:34 +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-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: Tue, 06 Jan 2004 09:39:53 -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