Date: Wed, 27 Jan 2010 05:54:46 +0100 From: Martin Schweizer <lists_freebsd@bluewin.ch> To: freebsd-questions@freebsd.org Subject: ipfw: limit bandwidth Message-ID: <20100127045446.GG28438@saturn.pcs.ms>
next in thread | raw e-mail | index | archive | help
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@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100127045446.GG28438>