On 20.08.2015 16:35, Paulo Coimbra wrote:
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
http://marc.info/?l=openbsd-misc&m=141085207225887&w=2