From owner-freebsd-pf@FreeBSD.ORG Tue Aug 22 18:15:57 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 822FF16A4DA for ; Tue, 22 Aug 2006 18:15:57 +0000 (UTC) (envelope-from zope@2012.vi) Received: from mail.dunhill.ws (satnet64-79.wctc.net [66.208.64.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 862CF43D45 for ; Tue, 22 Aug 2006 18:15:54 +0000 (GMT) (envelope-from zope@2012.vi) Received: from [10.0.0.172] (3puntacana97.codetel.net.do [200.88.97.3]) by mail.dunhill.ws (Weasel v1.73) for ; 22 Aug 2006 14:15:48 -0400 Message-ID: <44EB49C7.1040209@2012.vi> Date: Tue, 22 Aug 2006 14:15:35 -0400 From: beno User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: DIOCADDALTQ: Invalid argument 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: Tue, 22 Aug 2006 18:15:57 -0000 Thank you for all of your comments and help. According to my googling, this error is thrown when one has too many cbq classes. The limit, apparently, is 256. I don't have 1/20th of that limit, so I must be doing something else wrong. Here is the part of my pf.conf file in question: # class-based queueing (cbq) altq on $ext_if cbq bandwidth 3Mb queue { ssh, standard } queue ssh bandwidth 500Kb cbq(default) { ssh_login, ssh_bulk } queue ssh_login bandwidth 100Kb cbq(default) queue ssh_bulk bandwidth 400Kb cbq(borrow, priority 2) queue standard bandwidth 2500Kb cbq(ecn, priority 2) { http, ftp, email, other } queue http bandwidth 1900Kb cbq(default) (ecn, borrow) queue ftp bandwidth 200Kb cbq(ecn, borrow, priority 2) queue email bandwidth 200Kb cbq(ecn, priority 3) queue other bandwidth 200Kb cbq(ecn, priority 2) I have these options loaded in my kernel: # Packet Filters device pf device pflog device pfsync options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) According to the tutorial, one cannot have more than one default per queue, which I am (perhaps mistakenly) interpreting to mean that one can (and I presume should) have one default per queue and per sub-queue, since they are nested and therefore semi-autonomous/independent. I am admittedly confused concerning priq and priority. TIA, beno