Date: Mon, 4 Apr 2005 10:41:56 -0700 (PDT) From: LukeD@pobox.com To: Brian John <brianjohn@fusemail.com> Cc: freebsd-questions@freebsd.org Subject: Re: help with pf Message-ID: <20050404103139.V5130@border.crystalsphere.multiverse> In-Reply-To: <42509456.1060304@fusemail.com> References: <42509456.1060304@fusemail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Apr 2005, Brian John wrote: > altq on $ext_if priq > queue mail priority 13 > queue ssh priority 12 > queue web priority 14 I see one syntactical thing you missed. You have to define your child queues in your altq declaration. Something like: altq on $ext_if priq queue {mail, ssh, web} Also, after you get the syntax right, unless the maximum bandwidth of your outside line is the same as the maximum bandwidth of your network card (does this ever happen?) you're going to want to use the "bandwidth" keyword in that declaration also, and pick a proper value for it. Picking the right bandwidth value seems to be an art form that requires a lot of trial and error and liberal use of "pfctl -vvs queue" If traffic shaping isn't working and your queues are always empty, then the number is too high. If the queues are filling up and dropping too many packets, then either the number is too low or you're just generating more traffic than you can handle well. Luke Dean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050404103139.V5130>