Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2003 13:46:53 -0400
From:      Don Bowman <don@sandvine.com>
To:        'Troy Settle' <troy@psknet.com>, freebsd-isp@freebsd.org
Subject:   RE: IFPW/DUMMYNET
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533702741BC1@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
From: Troy Settle [mailto:troy@psknet.com]

> I need a quick and dirty way to limit every IP on their 
> network (10.x.x.0/24
> & a /28 of real addresses) to 384k of bandwidth.

ipfw pipe 2 config bw 384Kbit/s mask src-ip 0xffffffff queue 8Kbytes gred
0.002/4500/7500/0.1
ipfw add 60 pipe 2 ip from any to any recv em0

or something like that will do what you want. You might want two pipes, one
each way.
The mask on the src-ip (or dst-ip in the other dir) will create the rule as
needed.

--don



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