From owner-freebsd-pf@FreeBSD.ORG Wed Nov 30 23:40:03 2005 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 218EA16A41F for ; Wed, 30 Nov 2005 23:40:03 +0000 (GMT) (envelope-from marceloc@espoltel.net) Received: from jupiter.espoltel.net (jupiter.espoltel.net [200.49.240.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C24D143D55 for ; Wed, 30 Nov 2005 23:40:01 +0000 (GMT) (envelope-from marceloc@espoltel.net) Received: from hefesto ([69.65.149.194]) by jupiter.espoltel.net (8.12.10/8.12.10) with ESMTP id jAUNbflH017010 for ; Wed, 30 Nov 2005 18:37:41 -0500 Message-Id: <200511302337.jAUNbflH017010@jupiter.espoltel.net> From: "Marcelo Celleri" To: Date: Wed, 30 Nov 2005 18:39:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcX2Ao8IxA7uO5APRvWqcKeet1WHgQABFHUQ In-Reply-To: <8eea04080511301507k5d8db25dm6f4724beced44279@mail.gmail.com> X-Antivirus: avast! (VPS 0548-0, 29/11/2005), Outbound message X-Antivirus-Status: Clean X-ESPOLTEL-MailScanner-Information: Please contact the ISP for more information X-ESPOLTEL-MailScanner: Found to be clean Subject: RE: PF + ALTQ... help please!! 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, 30 Nov 2005 23:40:03 -0000 Sorry, but it was a mistake when I wrote the mail... The configuration looks like this: queue marcelo bandwidth 128Kb cbq { gold, silver, default } queue gold bandwidth 70% priority 3 cbq(borrow red) queue silver bandwidth 20% priority 2 cbq(borrow red) queue default bandwidth 10% cbq(borrow) =20 pass in on $int_if from any to xxx.xxx.xxx.xxx keep state queue default pass in on $int_if proto tcp from any port { 25,110 } to 200.49.242.42 \ keep state queue silver pass in on $int_if proto tcp from any port { 22,80,443 } to 200.49.242.42 \ keep state queue gold pass in on $int_if proto { udp,tcp } from any port 53 to 200.49.242.42 \ keep state queue gold But it doesn't work like I want... -----Mensaje original----- De: jsimola@gmail.com [mailto:jsimola@gmail.com] En nombre de Jon Simola Enviado el: Mi=E9rcoles, 30 de Noviembre de 2005 18:08 Para: Marcelo Celleri CC: freebsd-pf@freebsd.org Asunto: Re: PF + ALTQ... help please!! On 11/30/05, Marcelo Celleri wrote: > $int_if=3D"em1" > queue marcelo bandwidth 128Kb cbq { gold, silver, default } > queue marcelo1 bandwidth 70% priority 3 cbq(borrow red) > queue marcelo2 bandwidth 20% priority 2 cbq(borrow red) > queue marcelodf bandwidth 10% cbq(borrow) You've omitted a lot of the pf.conf file. The only thing I can suggest is that you name the sub-queues (marcelo1/2/df) the same as what the queue expects them to be named (gold/silver/default). Like this: altq on em0 cbq bandwidth 100Mb queue { default_ext, throttle_ext } queue default_ext bandwidth 40Mb qlimit 1000 priority 5 cbq(default red ecn) queue throttle_ext bandwidth 64Kb priority 1 cbq(red ecn) > pass in on $int_if proto { udp,tcp } from any port 53 to 200.49.242.42 keep > state queue gold Not actually having defined a gold queue, that does nothing. -- Jon Simola Systems Administrator ABC Communications --=20 Este mensaje ha sido analizado por el antivirus de ESPOLTEL S.A. en busca de virus y otros contenidos peligrosos, y se considera que est=E1 limpio. --=20 Este mensaje ha sido analizado por el antivirus de ESPOLTEL S.A. en busca de virus y otros contenidos peligrosos, y se considera que est=E1 limpio.