Well, considering that only outbound packets can be queued, I've changed
some rules at pf.conf. Packets that are "outgoing" at $if_Internet, is
upload. Packets that are "outgoing" at vlan100 is download, all right? My
changed pf.conf below: (but even with these changes, doesn´t work for me, I
getting 300Mb+ each direction.). Am I a dumb? (LMFAO).

#
# [0x01] Macros
#
$if_Internet="em1"

#
# [0x05] Queueing
#
queue Internet on $if_Internet bandwidth 10M
queue vlan100_upload parent Internet bandwidth 5M max 5M default

queue v100 on vlan100 bandwidth 10M
queue vlan100_download parent v100 bandwidth 5M max 5M default

#
# [0x07] Packet Filtering
#

pass out quick on vlan100 set queue vlan100_download no state
pass out quick on $if_Internet set queue vlan100_upload no state


br,

Paulo Coimbra

2015-08-20 10:11 GMT-03:00 Josh Grosse <[email protected]>:

> On 2015-08-20 08:47, Paulo Coimbra wrote:
>
>> Hi all,
>>
>> I'm now doing some tests with openbsd+pf+queueing. My scenario is:
>>
>> [MIKROTIK 1] ----------------- [OPENBSD BOX]--------------[MIKROTIK 2]
>>
>> I've configured vlan 100 with physical interface em0 at openbsdBox and
>> mikrotik 1, and create two queues (vlan100_in and vlan100_out) to limit
>> bandwidth at 10M each direction. But... It doesn't works.
>>
>
> [snip]
>
> queue v100 on em0 bandwidth 1000M
>> queue vlan100_in parent  v100 bandwidth 10M default
>> queue vlan100_out parent v100 bandwidth 10M
>>
>
> [snip]
>
> pass in quick on vlan100 set queue vlan100_in
>> pass out quick on vlan100 set queue vlan100_out
>>
>> Any ideas? What am I doing wrong?
>>
>
> Queuing only works on packets that are *outbound*.  Once inbound packets
> have arrived, they are already present.
>
> So, if you want to limit the rate of traffic from the Internet to your
> local
> LAN, do so when those packets are forwarded by the router.  Those are
> outbound
> packets, and they can be queued.
>
>


--
br,

Paulo Coimbra

Reply via email to