How to give equal bandwidth to each host

angel.kafazov at angel.kafazov at
Mon May 24 08:13:12 PDT 2004

Hello everybody,

I have a problem when trying to shape my traffic so that every IP would get
proportional amount of the bandwidth. I mean that any number of hosts should be
able to use the full link at any time proportionally. I have made the following

           ipfw add pipe 1 ip from to any out
           ipfw add pipe 2 ip from any to in
           ipfw pipe 1 config mask src-ip 0x000000ff bw 128Kbit/s queue 20Kbytes
           ipfw pipe 2 config mask dst-ip 0x000000ff bw 640Kbit/s queue 20Kbytes

where 768 is my total bandwidth (640 down). However it does not seem to be
working correctly.
I have FreeBSD 4.9 box doing nat.

I will appreciate any help.


Angel Kafazov

Искаш ли Интернет, който да лети?
Да нали? – Включи се!
Кабелен Интернет от Евроком Кабел на
нова и още по-апетитна цена

More information about the freebsd-ipfw mailing list