Skip site navigation (1)Skip section navigation (2)
Date:      06 Feb 2004 10:50:38 -0500
From:      Dan Pelleg <daniel@pelleg.org>
To:        Vincent Poy <vince@oahu.WURLDLINK.NET>
Cc:        Dan Pelleg <daniel+bsd@pelleg.org>
Subject:   Re: FreeBSD Traffic Shaping?
Message-ID:  <u2s65eknr5d.fsf@lark.auton.cs.cmu.edu>
In-Reply-To: <20040206052422.C8264-100000@oahu.WURLDLINK.NET>
References:  <20040206052422.C8264-100000@oahu.WURLDLINK.NET>

next in thread | previous in thread | raw e-mail | index | archive | help
Vincent Poy <vince@oahu.WURLDLINK.NET> 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?

> 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.


-- 

  Dan Pelleg



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