From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 18:48:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2185116A4CE for ; Mon, 17 Nov 2003 18:48:55 -0800 (PST) Received: from smtp08.wxs.nl (smtp08.wxs.nl [195.121.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A29D43F93 for ; Mon, 17 Nov 2003 18:48:54 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp08.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HOJ0075612WKF@smtp08.wxs.nl> for freebsd-questions@freebsd.org; Tue, 18 Nov 2003 03:47:21 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.9p2/8.12.9) with ESMTP id hAI2mwEp004919; Tue, 18 Nov 2003 03:48:58 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.9p2/8.12.9/Submit) id hAI2mvwI004918; Tue, 18 Nov 2003 03:48:57 +0100 (CET envelope-from akruijff) Date: Tue, 18 Nov 2003 03:48:57 +0100 From: Alex de Kruijff In-reply-to: <20031118000352.GW41189@sonic.net> To: Kelsey Cummings Message-id: <20031118024857.GC3507@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <20031118000352.GW41189@sonic.net> cc: freebsd-questions@freebsd.org Subject: Re: ipfw dummynet bandwidth limiting questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 02:48:55 -0000 On Mon, Nov 17, 2003 at 04:03:52PM -0800, Kelsey Cummings wrote: > I've had some trouble getting ipfw to behave as expected. I've got a ipfw > box sitting as a firewall and traffic shaper in bridge mode. It's working > great for the most part but I'm having trouble getting some specific behavior > to work right. > > I'm currently limiting all outbound streams to 1.5mbits, and this works > great. However, I'd also like to setup an overall cap for all traffic to > run at 25mbits. I can only get one or the other of these rule/pipe combos > to take affect at any given time. I must be missing something obvious: > > The rules in questions are as follows: > > add 420 pipe 420 tcp from $slb_www 80 to any > pipe 420 config bw 1500Kbit/s queue 35 mask dst-ip 0xffffffff buckets 1024 > > add 440 pipe 440 tcp from $slb_www 80 to any > pipe 440 config bw 25Mbit/s queue 100 > > 'ipfw show' shows zero hits on rule 440, it sure seems like it should work. The packets are allowed on 420 you can disable this with: exec = /sbin/sysctl net.inet.ip.fw.one_pass=0 -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/