On 2022-02-17, Matthias Pressfreund <m...@fn.de> wrote:
> On a server with 3 LAN interfaces (re0/1/2):
> * re0 connected to the ISP
> * re1 connected to the internal network
> * re2 so far unused
>
> I was setting up pf queues for bandwidth control as follows:
> * one queue on re0 for outgoing traffic
> * another queue on re1 for incoming traffic
>
> Now, I would like to connect a wireless LAN router to re2 offering a
> guest network. As far as I understood, a pf queue has to be bound to
> exactly one network interface. So I'm wondering if there is another way
> to include incoming traffic on re2 into the very same bandwidth control
> currently realized by the queue on re1.

A queue is bound to one interface, but, you can have multiple queues
with the same name. "queue foo on em0", "queue foo on em1".

An assignment in PF e.g. "queue foo" will then use whichever is the
relevant "foo on $iface" when packets are transmitted which match
the PF state created by that rule.

(But to be honest I would probably do the queueing in the wireless LAN
router instead, they usually have a way to set a bandwidth limit "per
client" which is quite convenient, to do similar with PF you need to
create a separate named queue for each IP address in the subnet ..)

-- 
Please keep replies on the mailing list.

Reply via email to