From owner-freebsd-pf@FreeBSD.ORG Thu Jul 12 15:25:25 2007 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 0E1BC16A468 for ; Thu, 12 Jul 2007 15:25:25 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id B81CB13C448 for ; Thu, 12 Jul 2007 15:25:24 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so152595wxd for ; Thu, 12 Jul 2007 08:25:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ehkGalYPZuN4ZOF29TpLXAKYLtjk5dwBQzu/a2HgUb56W1t0z3gqlBRSenecT3xarkreJth7XeCDNJ+F5rS/MT+NBrUOD+Hv8Qa4agwAXHMNzJmzJHj704WKmF8JFLXl+fD5q1G6Kt5MhK5J0fXM3tRGsFgMKGgaY8YsUzoO69Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L67JWSrHPmj65/koHTRNTB9SKRRmNhcB/dZxBx6PwMeEbBx8o5FmmpLbPMMIrIKT/Cwelqz3v/nR19EDMxaz0uUiT9bHEvdkZ8groz7RvoaRaMXPueWnkIFdGQJGxQV8G5empQZqJdFb5Yprqja33BX8v11NqYn4RVeGkXmF/f8= Received: by 10.70.77.2 with SMTP id z2mr1254714wxa.1184253924175; Thu, 12 Jul 2007 08:25:24 -0700 (PDT) Received: by 10.70.115.5 with HTTP; Thu, 12 Jul 2007 08:25:24 -0700 (PDT) Message-ID: <9a542da30707120825p3781cec0ue8a7da86dc7a6f99@mail.gmail.com> Date: Thu, 12 Jul 2007 17:25:24 +0200 From: "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" To: "Mahabub Basha" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-pf@freebsd.org Subject: Re: ALTQ on multi-WAN with pf pools 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, 12 Jul 2007 15:25:25 -0000 altq on {$wan, $wan2 } priq queue { idle_1, normal_1, high_1} queue idle_1 priq(default) queue normal_1 priority 2 queue high_1 priority 3 pass in quick on $lan route-to { ($wan $wan_gw), ($wan2 $wan2_gw) } \ round-robin inet from ($lan:network) to any flags S/SA keep state queue high_1 should do the trick for you! If you want something more advanced you can ask again here or read carefully the BNF explanation on pf.conf manual page. Regards On 7/10/07, Mahabub Basha wrote: > Hi all, > > I have a multi-WAN setup using pf pools and want to use > simple QoS using ALTQ. I don't know how to use priq in > combination with multi-wan. > > My stripped pf.conf looks like this > > pf.conf > ========================================================== > altq on $wan priq queue { idle_1, normal_1, high_1} > queue idle_1 priq(default) > queue normal_1 priority 2 > queue high_1 priority 3 > > altq on $wan2 priq queue { idle_2, normal_2, high_2 } > queue idle_2 priq(default) > queue normal_2 priority 2 > queue high_2 priority 3 > > # User NAT Rules > nat on $wan from any to any -> ($wan) > nat on $wan2 from any to any -> ($wan2) > > pass in quick on $lan route-to { ($wan $wan_gw), ($wan2 $wan2_gw) } \ > round-robin inet from ($lan:network) to any flags S/SA keep state > ========================================================== > > > How can I assign select traffic (eg. ssh) going out on either $wan or > $wan2 to the "high_x" queues? > > Thanks for reading! > > - Mahabub Basha. S > _______________________________________________ > 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" >