ipfw: limit bandwidth

Martin Schweizer lists_freebsd at bluewin.ch
Wed Jan 27 04:54:55 UTC 2010


Hello

I use FreeBSD 7.2 on a amd64. I want to limit the bandwidth thru this machine. Here is the relevante part of /etc/rc.firewall

[snip]
$ipfwcmd pipe 1 config bw 80kByte/s
$ipfwcmd add pipe 1 ip from any to 192.168.10.0/24{100-254} via em1

$ipfwcmd queue 1 config pipe 1 weight 1 mask dst-ip 0xffffffff
$ipfwcmd add queue 1 all from any to 192.168.10.0/24{100-254} via em1
[snip]

I generate this from different sources but it seems that it is not working. What do I'm wrong?

Here the part from ipfw show:

00100       0          0 check-state
00200   24327    1497881 pipe 1 ip from any to 192.168.10.0/24{100-254} via em1
00300       0          0 queue 1 ip from any to 192.168.10.0/24{100-254} via em1
[snip]


Regards,
-- 

Martin Schweizer
<office at pc-service.ch>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;



More information about the freebsd-questions mailing list