From owner-freebsd-pf@FreeBSD.ORG Wed Oct 26 20:16:37 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 BAE561065677 for ; Wed, 26 Oct 2011 20:16:37 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from ffe5.ukr.net (ffe5.ukr.net [195.214.192.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6FF558FC08 for ; Wed, 26 Oct 2011 20:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Date:Message-Id:From:To:Subject:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=0GEHiLg8KDcZt53xIZJHXpYYMgSrAld/pH28+lFRV6Y=; b=XQscRcmSmLOTKivTjQTCCt58lwDbcrBsBxQGvSIzx2Wgg1Pl6nizruP2xb9ljnx9VJ/l9PGrtNeHD3MFWfCMLwEh2G8tv3ez7M2bWfBVlEx+otqqEnh/ULskCmuwUMnsqTo9XJ9nWvox2JNi0jusk6cjRlU3bCIdviVnaXnpORs=; Received: from mail by ffe5.ukr.net with local ID 1RJ9tr-0003j4-NL for freebsd-pf@freebsd.org; Wed, 26 Oct 2011 23:16:35 +0300 MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain; charset="windows-1251" To: freebsd-pf@freebsd.org From: =?WINDOWS-1251?B?wujy4Ovo6SDC6+Dk6Ozo8O7i6Pc=?= X-Mailer: freemail.ukr.net 4.0 X-Originating-Ip: [195.200.251.83] Message-Id: <12724.1319660195.16881837918041800704@ffe5.ukr.net> X-Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Date: Wed, 26 Oct 2011 23:16:35 +0300 Subject: 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: Wed, 26 Oct 2011 20:16:37 -0000 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 serv 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?