From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 07:59:59 2004 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 9B4EC16A4CE for ; Fri, 6 Feb 2004 07:59:59 -0800 (PST) Received: from oahu.WURLDLINK.NET (oahu.wurldlink.net [66.193.144.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C163443D55 for ; Fri, 6 Feb 2004 07:59:50 -0800 (PST) (envelope-from vince@oahu.WURLDLINK.NET) Received: from oahu.WURLDLINK.NET (vince@localhost.WURLDLINK.NET [127.0.0.1]) by oahu.WURLDLINK.NET (8.12.9/8.12.9) with ESMTP id i16FxkqQ070659; Fri, 6 Feb 2004 05:59:46 -1000 (HST) Received: from localhost (vince@localhost)i16Fxkbs070656; Fri, 6 Feb 2004 05:59:46 -1000 (HST) Date: Fri, 6 Feb 2004 05:59:46 -1000 (HST) From: Vincent Poy To: Dan Pelleg In-Reply-To: Message-ID: <20040206055415.D8264-100000@oahu.WURLDLINK.NET> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org cc: Dan Pelleg Subject: Re: FreeBSD Traffic Shaping? 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: Fri, 06 Feb 2004 15:59:59 -0000 On 6 Feb 2004, Dan Pelleg wrote: > Vincent Poy writes: > > > > > After reading ipfw(8), I hope I have it correct that it's > > like this: > > > > ipfw add queue 1 ip from any to any out xmit xl0 > > Shouldn't "ipfw add queue 1" be enough? Don't know, that was what I was told to do by Luigi many years ago except it was for PPPoE so I didn't have a static IP at all as that one was interface specific. > > ipfw pipe 1 config bw 384Kbit/s > > ipfw queue 1 config pipe 1 weight 30 mask all > > > > Now I'm just confused how to do the IP portion so that: > > > > 192.168.0.0 255.255.0.0 > > 209.204.138.224-231 > > are not included > > > > but everything else in 209.204.x.x is as well as any undefined IP. > > the first match wins. So: > > pass from 192.168.0.0/16 to any > pass from 209.204.138.224/29 to any > queue 1 from any to any > > alternatively, use a "skipto" rule. Whatever fits in your ruleset better. A question on the /29 one, as my ISP seems to give the 8 IP's from a /24 netmask, wouldn't the /29 actually filter out .224 and .231 from working or does it basically excluse that range. Cheers, Vince - vince@WURLDLINK.NET - Vice President ________ __ ____ Unix Networking Operations - FreeBSD-Real Unix for Free / / / / | / |[__ ] WurldLink Corporation / / / / | / | __] ] San Francisco - Honolulu - Hong Kong / / / / / |/ / | __] ] HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[____] Almighty1@IRC - oahu.DAL.NET Hawaii's DALnet IRC Network Server Admin