Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 18:00:01 -0800
From:      Sean Chittenden <sean@chittenden.org>
To:        Michael Sierchio <kudzu@tenebras.com>
Cc:        Luigi Rizzo <rizzo@icir.org>, FreeBSD user <freebsd@XtremeDev.com>, freebsd-ipfw@FreeBSD.ORG
Subject:   Re: ipfw, dummynet, weights, and ssh?
Message-ID:  <20020222180001.A24470@ninja1.internal>
In-Reply-To: <3C76EA67.8010807@tenebras.com>; from "kudzu@tenebras.com" on Fri, Feb 22, 2002 at = 05:03:35PM
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020222180001.A24470>