ipfw dummynet bandwidth limiting questions

Alex de Kruijff freebsd at akruijff.dds.nl
Mon Nov 17 18:48:55 PST 2003

On Mon, Nov 17, 2003 at 04:03:52PM -0800, Kelsey Cummings wrote:
> I've had some trouble getting ipfw to behave as expected.  I've got a ipfw
> box sitting as a firewall and traffic shaper in bridge mode.  It's working
> great for the most part but I'm having trouble getting some specific behavior
> to work right.
> I'm currently limiting all outbound streams to 1.5mbits, and this works
> great.  However, I'd also like to setup an overall cap for all traffic to
> run at 25mbits.  I can only get one or the other of these rule/pipe combos
> to take affect at any given time.  I must be missing something obvious:
> The rules in questions are as follows:
>   add 420 pipe 420 tcp from $slb_www 80 to any
>   pipe 420 config bw 1500Kbit/s queue 35 mask dst-ip 0xffffffff buckets 1024
>   add 440 pipe 440 tcp from $slb_www 80 to any
>   pipe 440 config bw 25Mbit/s queue 100
> 'ipfw show' shows zero hits on rule 440, it sure seems like it should work.

The packets are allowed on 420 you can disable this with:
  exec = /sbin/sysctl net.inet.ip.fw.one_pass=0


Articles based on solutions that I use:

More information about the freebsd-questions mailing list