From owner-freebsd-pf@FreeBSD.ORG Fri May 18 13:02:15 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD1AD16A407 for ; Fri, 18 May 2007 13:02:15 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 7CDBC13C45A for ; Fri, 18 May 2007 13:02:15 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7d12.q.ppp-pool.de [89.53.125.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id EE9FD128829 for ; Fri, 18 May 2007 15:02:08 +0200 (CEST) Received: from cesar.sz.vwsoft.com (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id 813E53FA01; Fri, 18 May 2007 15:01:39 +0200 (CEST) Message-ID: <464DA3B5.9050606@vwsoft.com> Date: Fri, 18 May 2007 15:01:41 +0200 From: Volker User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Umar References: <10678120.post@talk.nabble.com> <464D70D0.3000608@vwsoft.com> <10679395.post@talk.nabble.com> <464D8AE8.30103@vwsoft.com> <10680560.post@talk.nabble.com> <464D9357.6090505@vwsoft.com> <10680832.post@talk.nabble.com> <464D9B78.1010700@vwsoft.com> <10681289.post@talk.nabble.com> In-Reply-To: <10681289.post@talk.nabble.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-pf@freebsd.org Subject: Re: bandwidth controlling with ALTQ X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 13:02:15 -0000 Umar, On 05/18/07 14:35, Umar wrote: > Dear Volker! > > Sorry for disturbing you again!! > > pfctl: should have one default queue on fxp0 > pfctl: errors in altq config > > please help me to create default queue what will be the syntax thanks that's why I was writing 'Note: You also have to define one default queue "hfsc ( default )".' queue qdefault bandwidth (any Kb not used by any other queue) [Kb|%] hfsc ( default rio ) Say, your b/w is 1 Mb (upstream), you've assigned 10 Kb queues to 20 clients (=200 Kb), you may specify the default queue as: altq... { qclient1, qclient2, ..., qdefault } queue qdefault bandwidth 740 Kb hfsc ( default rio ) You may also want to use the keyword "borrow" (for every queue). If it's low traffic on your upstream, queues allowed to borrow will get more b/w when needed. You may also want to take a look at pf.conf(5). There's a good example on queuing. HTH Volker