Date: Thu, 24 Jun 2010 22:41:16 +0200 From: Michal Buchtik <buchtajz@borsice.net> To: freebsd-pf@freebsd.org Subject: Re: Unknown Behavior of PF+ALTQ on a Bridge Message-ID: <4C23C2EC.8060102@borsice.net> In-Reply-To: <AANLkTilNGkFzRSrPPzq9zSX4mpjNkewS_-x_N7_DHejn@mail.gmail.com> References: <AANLkTim4F0iJvKfjCWJtAFkwYhOT4J_Yz3sZOiOdRPoj@mail.gmail.com> <AANLkTimCHZakUfHRUplTGyNMsx3ZFuVo7wLYbRLNseQA@mail.gmail.com> <AANLkTilMEb29wh-fKSBVqbiBQhLr2SWwWebFWXcc2qHP@mail.gmail.com> <AANLkTilNGkFzRSrPPzq9zSX4mpjNkewS_-x_N7_DHejn@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On 2010/06/24 21:42, Rafael Henrique Faria wrote: > 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? > > I never try pf on bridge, but on router. You must create queues on every interface (only outgoing packets are queued) and pass rules on every interface too. States created then directs packets to right queue. Try something like: pass in log quick on $lan_if from<sub1> to any tag SUB1_UP keep state queue ( down_sub1 ) pass out log quick on $wan_if tagged SUB1_UP keep state queue (up_sub1) pass in log quick on $wan_if from any to<sub1> tag SUB1_DOWN keep state queue ( up_sub1 ) pass out log quick on $lan_if tagged SUB1_DOWN keep state queue ( down_sub1 ) or try "no state", but with performance decrease. This is only working solution I found (on router).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C23C2EC.8060102>