IPFW Not shaping traffic correctly

Hello,
I am using ipfw.conf for traffic shaping, but it's not working as I want...
Here's the rules in ipfw.conf
Code:
table 1 flush
table 1 add 172.23.0.0/20

table 2 flush
table 2 add 172.23.0.5

pipe 10 config bw 10MByte/s
pipe 11 config bw 10MByte/s
pipe 12 config bw 100MByte/s

add pass all from table(1) to table(1)

# Table 1
add pipe 10 all from table(1) to any
add pipe 11 all from any to table(1)

#Table 2
add pipe 12 all from table(2) to any
add pipe 12 all from any to table(2)

add pass all from any to any
The problem is that no matter what I do, the computer behind the firewall is limited to 3MB/s. If I stop the ipfw with service ipfw stop the download goes up to 120MB/s. What am I doing wrong?
Result of sysctl net.inet.ip.fw.one_pass is
Code:
net.inet.ip.fw.one_pass: 1

Thanks in advance.

// Later edit:
I have seen that if I limit the bandwidth < 3MB/s the traffic shaping works great. If I try to increase it over 3MB/s, it's stuck at 3...
 
Back
Top