Date: Thu, 12 Jul 2007 17:25:24 +0200 From: "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" <ermal.luci@gmail.com> To: "Mahabub Basha" <mahabubbasha@gmail.com> Cc: freebsd-pf@freebsd.org Subject: Re: ALTQ on multi-WAN with pf pools Message-ID: <9a542da30707120825p3781cec0ue8a7da86dc7a6f99@mail.gmail.com> In-Reply-To: <ef7327bc0707100726n4627b0f8v85fffb119805582@mail.gmail.com> References: <ef7327bc0707100726n4627b0f8v85fffb119805582@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mahabubbasha@gmail.com> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9a542da30707120825p3781cec0ue8a7da86dc7a6f99>