From owner-freebsd-pf@FreeBSD.ORG Fri Oct 28 07:21:13 2011 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46E0E106566B for ; Fri, 28 Oct 2011 07:21:13 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0061F8FC0C for ; Fri, 28 Oct 2011 07:21:12 +0000 (UTC) Received: by vcbfo13 with SMTP id fo13so4861279vcb.13 for ; Fri, 28 Oct 2011 00:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qL52517t6WhLp+thVkjkHCVCsa25lQgrGbacOkU0Vo4=; b=SuGE1QAj4A53KvOUKjfp9kazDE/9nUSrcNplGAGfqzY6uN8FSXTcaH9ZhjNxskYYYh 9Yl+toDrMTIXZQ8BYeLr/NvCGQqylWl7teFuAIFkv/oNuIe+hdszwzueU6hl/OJQlNPD m4ZTtcXM4bSUWqRWS9fczWVaOGzyWtwT9/faU= Received: by 10.220.5.212 with SMTP id 20mr244860vcw.112.1319784915107; Thu, 27 Oct 2011 23:55:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.192.138 with HTTP; Thu, 27 Oct 2011 23:54:54 -0700 (PDT) In-Reply-To: <12724.1319660195.16881837918041800704@ffe5.ukr.net> References: <12724.1319660195.16881837918041800704@ffe5.ukr.net> From: Valentin Bud Date: Fri, 28 Oct 2011 09:54:54 +0300 Message-ID: To: =?KOI8-R?B?98nUwczJyiD3zMHEyc3J0s/Xyd4=?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-pf@freebsd.org Subject: Re: ALTQ with HFSC 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, 28 Oct 2011 07:21:13 -0000 2011/10/26 =F7=C9=D4=C1=CC=C9=CA =F7=CC=C1=C4=C9=CD=C9=D2=CF=D7=C9=DE > > Recently I worked around traffic prioritization of my router > (FreeBSD9-BETA3). I would like to prioritization traffic coming from > external interface and coming from internal LAN. > > ## ALTQ > > altq on $ext_if hfsc bandwidth 800Kb qlimit 500 queue {std lan lan_ack se= rv > serv_ack} > queue std bandwidth 100Kb priority 2 hfsc(default ecn) > > queue lan bandwidth 100Kb priority 5 hfsc(realtime 100Kb) > queue lan_ack bandwidth 300Kb priority 10 hfsc(realtime 200Kb) > > queue serv bandwidth 200Kb priority 4 hfsc(realtime 200Kb) > queue serv_ack bandwidth 100Kb priority 256 hfsc(realtime 50Kb) > > ./pf.conf:58: priority out of range: max 255 > pfctl: Syntax error in config file: pf rules not loaded > > Does HFSC support up to 255 priorities? > If you take into account priority 0 (to 255) you have a total of 256 priorities. --=20 network warrior