From owner-freebsd-hackers Thu May 16 9:27: 6 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id BE0C937B406 for ; Thu, 16 May 2002 09:26:13 -0700 (PDT) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g4GGQ3x69437; Thu, 16 May 2002 09:26:03 -0700 (PDT) (envelope-from rizzo) Date: Thu, 16 May 2002 09:26:03 -0700 From: Luigi Rizzo To: Gary Stanley Cc: freebsd-hackers@FreeBSD.org Subject: Re: dummynet Message-ID: <20020516092603.C69282@iguana.icir.org> References: <5.1.0.14.2.20020516111353.01a20008@208.141.46.254> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20020516111353.01a20008@208.141.46.254> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 16, 2002 at 11:18:30AM -0400, Gary Stanley wrote: > Thanks for the answers on my previous thread. Now on to a more, boring > topic? ;-) > > I have dummynet, kind of, set up a way I want. The question is, Is it > possible to limit everyone that downloads foo.bar to a certain rate, ie, > 176KByte/s per each -connecting- IP? I tried many different ways and it > doesn't seem to work the way I want it. you should add a "mask src-ip 0xffffffff" to the pipe config if you want individual limits per source address, or "dst-ip ..." to limit per dst-address, and the like. See the ipfw manpage. cheers luigi > I have a small script like this setup: > > /sbin/ipfw add pipe 1 ip from me to any > /sbin/ipfw add pipe 2 ip from any to me > > /sbin/ipfw pipe 1 config bw 176KByte/s > /sbin/ipfw pipe 2 config bw 100Mbit/s > > Thanks, > /ges > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message