Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2002 09:26:03 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        Gary Stanley <gary@outloud.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: dummynet
Message-ID:  <20020516092603.C69282@iguana.icir.org>
In-Reply-To: <5.1.0.14.2.20020516111353.01a20008@208.141.46.254>
References:  <5.1.0.14.2.20020516111353.01a20008@208.141.46.254>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020516092603.C69282>