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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to