FreeBSD Traffic Shaping?
Dan Pelleg
daniel at pelleg.org
Fri Feb 6 07:50:59 PST 2004
Vincent Poy <vince at 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
More information about the freebsd-questions
mailing list