From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 04:54:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 748BA1065670 for ; Wed, 27 Jan 2010 04:54:55 +0000 (UTC) (envelope-from martin@saturn.pcs.ms) Received: from mail1.hostpark.net (mail1.hostpark.net [212.243.197.31]) by mx1.freebsd.org (Postfix) with ESMTP id 2E5A38FC14 for ; Wed, 27 Jan 2010 04:54:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail1.hostpark.net (Postfix) with ESMTP id A939C87F67; Wed, 27 Jan 2010 05:54:52 +0100 (CET) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail1.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id m4YkOdDuHpkN; Wed, 27 Jan 2010 05:54:52 +0100 (CET) Received: from saturn.pcs.ms (182-142.2-85.cust.bluewin.ch [85.2.142.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail1.hostpark.net (Postfix) with ESMTP id 5C21687F56; Wed, 27 Jan 2010 05:54:52 +0100 (CET) Received: from saturn.pcs.ms (localhost [127.0.0.1]) by saturn.pcs.ms (8.14.3/8.14.3) with ESMTP id o0R4slp9074781; Wed, 27 Jan 2010 05:54:47 +0100 (CET) (envelope-from martin@saturn.pcs.ms) Received: (from martin@localhost) by saturn.pcs.ms (8.14.3/8.14.3/Submit) id o0R4slvZ074780; Wed, 27 Jan 2010 05:54:47 +0100 (CET) (envelope-from martin) Date: Wed, 27 Jan 2010 05:54:46 +0100 From: Martin Schweizer To: freebsd-questions@freebsd.org Message-ID: <20100127045446.GG28438@saturn.pcs.ms> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: PC-Service M. Schweizer GmbH, CH-8608 Bubikon, Switzerland User-Agent: Mutt/1.5.20 (2009-06-14) Subject: ipfw: limit bandwidth X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Schweizer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 04:54:55 -0000 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 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;