From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 08:19:26 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 21A9516A4CE for ; Fri, 6 Feb 2004 08:19:26 -0800 (PST) Received: from oahu.WURLDLINK.NET (oahu.wurldlink.net [66.193.144.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C32B43D54 for ; Fri, 6 Feb 2004 08:19:24 -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 i16GJ9qQ070998; Fri, 6 Feb 2004 06:19:19 -1000 (HST) Received: from localhost (vince@localhost)i16GJ9fr070994; Fri, 6 Feb 2004 06:19:09 -1000 (HST) Date: Fri, 6 Feb 2004 06:19:09 -1000 (HST) From: Vincent Poy To: Dan Pelleg In-Reply-To: <16419.48006.713034.49353@lark.auton.cs.cmu.edu> Message-ID: <20040206061154.G8264-100000@oahu.WURLDLINK.NET> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@FreeBSD.ORG 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 16:19:26 -0000 On Fri, 6 Feb 2004, Dan Pelleg wrote: > Vincent Poy writes: > > > > That's the part where it becomes difficult since even though I > > have 8 IP's, it's still on a /24 mask so only the 8 IP's in that /24 are > > actually local. > > Use a /27 mask. a /27 would work except it'll be 32 IP's with 24 of them that would need the traffic shaping. So hopefully this would work: ipfw add queue 1 ip from any to any out xmit xl0 or just ipfw add queue 1 followed by: ipfw pipe 1 config bw 384Kbit/s ipfw queue 1 config pipe 1 weight 30 mask all ipfw pass from 192.168.0.0/16 to any ipfw pass from 209.204.138.224 to any ipfw pass from 209.204.138.225 to any ipfw pass from 209.204.138.226 to any ipfw pass from 209.204.138.227 to any ipfw pass from 209.204.138.228 to any ipfw pass from 209.204.138.229 to any ipfw pass from 209.204.138.230 to any ipfw pass from 209.204.138.231 to any ipfw queue 1 from any to any Now just have to figure out how to make it so that ack's would have priority. Thanks! 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