From owner-freebsd-pf@FreeBSD.ORG Mon Nov 27 20:24:59 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5C2C216A47B for ; Mon, 27 Nov 2006 20:24:59 +0000 (UTC) (envelope-from linux@giboia.org) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FE6E456BA for ; Mon, 27 Nov 2006 18:59:48 +0000 (GMT) (envelope-from linux@giboia.org) Received: by wr-out-0506.google.com with SMTP id i28so242048wra for ; Mon, 27 Nov 2006 11:00:49 -0800 (PST) Received: by 10.78.204.7 with SMTP id b7mr13561828hug.1164654047246; Mon, 27 Nov 2006 11:00:47 -0800 (PST) Received: by 10.78.175.17 with HTTP; Mon, 27 Nov 2006 11:00:46 -0800 (PST) Message-ID: <6e6841490611271100t8f21e29ic4d4810f389c6fef@mail.gmail.com> Date: Mon, 27 Nov 2006 17:00:46 -0200 From: "Gilberto Villani Brito" To: "FreeBSD (PF)" In-Reply-To: <456B27C7.4030704@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456B27C7.4030704@tomjudge.com> Subject: Re: PF and ALTQ queue option. 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: Mon, 27 Nov 2006 20:24:59 -0000 Correct, you need use your second example. Gilberto 2006/11/27, Tom Judge : > Hi, > > I am looking at using cbq to prioritise video conference traffic over > all of the rest of the traffic crossing our VPN. I was just wondering > if the following configuration would to this (The vpn link is 2Mbit, in > I will be running pf+altq at both ends of the link). > > > > altq on em0 cbq qbandwidth 2Mb queue { normal, vidconf } > queue normal bandwidth 1Mb priority 0 cbq(ecn) > queue vidconf bandwidth 1Mb priority 1 cbq(ecn) > > pass in on em0 from 172.17.0.123 to 10.0.0.123 queue vidconf > pass out on em0 from 10.0.0.123 to 172.17.0.123 queue vidconf > > pass in on em0 from any to any queue normal > pass out on em0 from any to any queue normal > > pass in quick on em0 from 172.17.0.0/16 to 10.0.0.0/16 > pass out quick on em0 from 10.0.0.0/16 to 172.17.0.0/16 > > > The main question I have is which queue will the traffic between > 10.0.0.123 and 172.17.0.123. In the pf world it would seem it gets > queued in normal, is this correct? if it is i guess i have to invert the > rules like so: > > pass in on em0 from any to any queue normal > pass out on em0 from any to any queue normal > > pass in on em0 from 172.17.0.123 to 10.0.0.123 queue vidconf > pass out on em0 from 10.0.0.123 to 172.17.0.123 queue vidconf > > > Thanks > > Tom > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" >