From owner-freebsd-pf@FreeBSD.ORG Thu Jun 24 19:42:36 2010 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 87B5D1065674; Thu, 24 Jun 2010 19:42:36 +0000 (UTC) (envelope-from rafaelhfaria@cenadigital.com.br) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 30F878FC16; Thu, 24 Jun 2010 19:42:36 +0000 (UTC) Received: by gwb11 with SMTP id 11so2055799gwb.13 for ; Thu, 24 Jun 2010 12:42:35 -0700 (PDT) Received: by 10.229.181.16 with SMTP id bw16mr5610708qcb.223.1277408555371; Thu, 24 Jun 2010 12:42:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.201.16 with HTTP; Thu, 24 Jun 2010 12:42:15 -0700 (PDT) In-Reply-To: References: From: Rafael Henrique Faria Date: Thu, 24 Jun 2010 16:42:15 -0300 Message-ID: To: freebsd-net@freebsd.org, freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Unknown Behavior of PF+ALTQ on a Bridge 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: Thu, 24 Jun 2010 19:42:36 -0000 Just to be more clean: My pf.conf: ---- wan_if=3D"bce0" set limit { states 100000, frags 20000 } set loginterface $wan_if set optimization normal set block-policy drop set fingerprints "/etc/pf.os" set skip on lo altq on $wan_if cbq bandwidth 100% queue { out_bal, out_std } queue out_bal bandwidth 50% priority 0 cbq queue out_std bandwidth 50% priority 0 cbq (default borrow) pass out on $wan_if queue (out_bal) ---- The "pfctl -vvs queue" show: ---- queue root_bce0 on bce0 bandwidth 1Gb priority 0 cbq( wrr root ) {out_bal, out_std} [ pkts: 50117 bytes: 13947411 dropped pkts: 0 bytes: 0= ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 3869.4 packets/s, 8.31Mb/s ] queue out_bal on bce0 bandwidth 500Mb priority 0 [ pkts: 33198 bytes: 7175985 dropped pkts: 0 bytes: 0= ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 2591.3 packets/s, 4.36Mb/s ] queue out_std on bce0 bandwidth 500Mb priority 0 cbq( borrow default ) [ pkts: 16919 bytes: 6771426 dropped pkts: 0 bytes: 0= ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 1278.1 packets/s, 3.95Mb/s ] ---- So, my question is: why the default queue is being used, If I have a rule to use the out_bal queue to all outgoing traffic on that interface? I need to redirect all the traffic from a subnet (/24) to one queue (incoming and outgoing traffic)... so what I can understand is that, this is not possible with PF+ALTQ. Am I wrong? --=20 Rafael Henrique da Silva Faria Grupo de Sistemas e Redes Servi=E7o T=E9cnico de Inform=E1tica Faculdade de Ci=EAncias e Letras do Campus de Araraquara - UNESP