From owner-freebsd-questions@FreeBSD.ORG Sat Jul 3 00:22:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C634F1065689 for ; Sat, 3 Jul 2010 00:22:31 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF7D8FC08 for ; Sat, 3 Jul 2010 00:22:31 +0000 (UTC) Received: by qwg5 with SMTP id 5so1505855qwg.13 for ; Fri, 02 Jul 2010 17:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=D73NljeWLei+sla121T1a3CyFT95EmveXMmYfHZY04w=; b=j7wsZ7Wz6eDcDJTd8jQD5MDrO8GlgSOwy4cl//O2hqGp/hk8uzcBVCNVWEGFXt9ur5 qoFwNDgA1BENwMGwiCjId8lB4J1rCYdAJYZ4rwCFr70j/GDIzU5BDTc8bs70Gg1/t9Nt OxAnw3bNslaVhibmpSOL5fbbbhrrTfXxSr050= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Pejb/zXh7p45qWmeG73/SpPJ2h74E9XeC4OUIuD2UqvBNPyvGt1o5elLd+DhXXUn9f cVa0IRCaEQ8TTULUOPBbncyLmycBi3Kfk6K6AGwccycjkLcTofxPp95pUmZXzvjT22wS MSvHMrkmwJvCKJ2UZEiMKmsLUsfpBER5MoM5E= Received: by 10.224.61.15 with SMTP id r15mr891038qah.42.1278116534317; Fri, 02 Jul 2010 17:22:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.88.197 with HTTP; Fri, 2 Jul 2010 17:21:53 -0700 (PDT) In-Reply-To: References: From: Maxim Khitrov Date: Fri, 2 Jul 2010 20:21:53 -0400 Message-ID: To: krad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Free BSD Questions list Subject: Re: Same priority pf/altq queues not supported? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2010 00:22:31 -0000 On Fri, Jul 2, 2010 at 8:17 PM, krad wrote: > > > On 3 July 2010 00:05, Maxim Khitrov wrote: >> >> Hello all, >> >> I'm configuring pf on FreeBSD 7.3 and would like to use the following >> altq settings: >> >> altq on $ext priq bandwidth 9240Kb queue {low, red, med, top} >> altq on {$int1, $int2, $srv} priq bandwidth 100Mb queue {low, red, med, >> top} >> >> queue low priority 1 priq(default) =C2=A0# Default priority queue >> queue red priority 1 priq(red) =C2=A0 =C2=A0 =C2=A0# Default priority TC= P queue with RED >> queue med priority 2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0# DNS, DHCP, ACKs, and TOS =3D=3D lowdelay >> queue top priority 3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0# ICMP, NTP >> >> When I try to load these settings, I get the following errors: >> >> pfctl: low and red have the same priority >> pfctl: low and red have the same priority >> pfctl: low and red have the same priority >> pfctl: low and red have the same priority >> /etc/pf.conf:79: errors in queue definition >> >> OpenBSD 4.1 documentation states that "if two or more queues are >> assigned the same priority then those queues are processed in a >> round-robin fashion." Is there any specific reason why this behavior >> was altered in the FreeBSD port? >> >> I'm not really sure of what to do, because I don't want to prioritize >> or deprioritize TCP traffic, and I can't have RED enabled for any >> other protocol. If you have any other general-purpose queuing >> suggestions, please let me know. >> >> - Max > > check the version of pf in freebsd compared to openbsd, as they are not > always in sync > I'm aware of this. FreeBSD 7.3 should be using pf from OpenBSD 4.1: http://www.freebsd.org/doc/en/books/handbook/firewalls-pf.html#AEN39617 - Max