IFPW/DUMMYNET
Don Bowman
don at sandvine.com
Thu Jun 26 10:46:58 PDT 2003
From: Troy Settle [mailto:troy at 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
More information about the freebsd-isp
mailing list