blueice
October 21st, 2004, 13:15
Hi,
i have a web server and i want to make this configuration:
1. every IP connected to port 80 use max 300kbit BW
2. total outcoming BW on port 80 is 10Mbit.

I have make this configuration:
$fwcmd pipe 1 config bw 5Mbit/s queue 1000Kbytes
$fwcmd add pipe 1 tcp from 69.66.55.44 80 to any
$fwcmd pipe 2 config bw 300Kbit/s queue 1000Kbytes mask dst-ip 0xffffffff
$fwcmd add pipe 2 tcp from 69.66.55.44 80 to any
Every one of this configs can put the right limit (if i put one limit per time).
But if i put both this codes in the firewall script only the first is working.
Can everyone help me how i can put the 2 limits together?
Thanks a lot.
Regards,
Christos

bsdjunkie
October 21st, 2004, 13:54
Im not too familiar with ipfw dummynet, but every example I see on the net has the adding of the pipe first, followed by the config settings. Maybe that will help?

blueice
October 21st, 2004, 14:46
Im not too familiar with ipfw dummynet, but every example I see on the net has the adding of the pipe first, followed by the config settings. Maybe that will help?
Hi
the problem is not this.
If i put only one code it is working. If i use only one limit then it is ok. But i canot do the 2 limits together.
Anyway thanks for your try to help :)
Regards,
Christos