From owner-freebsd-ipfw Sat Feb 23 0:38:14 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by hub.freebsd.org (Postfix) with ESMTP id E7E0A37B404 for ; Sat, 23 Feb 2002 00:38:09 -0800 (PST) Received: by mail.tgd.net (Postfix, from userid 1001) id 3B5CA20F07; Fri, 22 Feb 2002 18:00:01 -0800 (PST) Date: Fri, 22 Feb 2002 18:00:01 -0800 From: Sean Chittenden To: Michael Sierchio Cc: Luigi Rizzo , FreeBSD user , freebsd-ipfw@FreeBSD.ORG Subject: Re: ipfw, dummynet, weights, and ssh? Message-ID: <20020222180001.A24470@ninja1.internal> References: <20020222031809.M37938-100000@Amber.XtremeDev.com> <3C7673C6.9060706@tenebras.com> <20020222092703.A62387@iguana.icir.org> <3C7682C7.10009@tenebras.com> <3C76830D.4090807@tenebras.com> <3C7683A7.4010207@tenebras.com> <20020222102913.L10003@ninja1.internal> <3C76EA67.8010807@tenebras.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3C76EA67.8010807@tenebras.com>; from "kudzu@tenebras.com" on Fri, Feb 22, 2002 at = 05:03:35PM X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > If you're trying to do rate-shapping, you might want to check out > > dummynet(4). That man page helped me the most in setting up > > rate-shapping. -sc > > Care to share examples? For example, is bandwidth reservation > possible (which is what the question seemed to be), or is this > achieved indirectly through bandwidth limiting of other traffic? From dummynet(4): ipfw pipe 1 config bw 1Mbit/s ipfw add pipe 1 ip from A to B out ipfw add pipe 1 ip from B to A in where A can be one of the following (from ipfw(8)): ipno An IP number of the form 1.2.3.4. Only this exact IP number will match the rule. ipno/bits An IP number with a mask width of the form 1.2.3.4/24. In this case all IP numbers from 1.2.3.0 to 1.2.3.255 will match. ipno:mask An IP number with a mask of the form 1.2.3.4:255.255.240.0. In this case all IP numbers from 1.2.0.0 to 1.2.15.255 will match. You can also add ports to that in the same way you would make a normal filewall rule. -sc -- Sean Chittenden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message