How to give equal bandwidth to each host

angel.kafazov at mail.bg angel.kafazov at mail.bg
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
settings:

           ipfw add pipe 1 ip from 192.168.2.0/24 to any out
           ipfw add pipe 2 ip from any to 192.168.2.0/24 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.

Best,

Angel Kafazov


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




More information about the freebsd-ipfw mailing list