i am trying to limit bandwidth use on a machine using queues.
My pf.conf is:
[hidden email] [~] # cat /etc/pf.conf
# $OpenBSD: pf.conf,v 1.53 2014/01/25 10:28:36 dtucker Exp $
# See pf.conf(5) for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.
client = "192.168.3.11"
# increase default state limit from 10'000 states on busy systems
#set limit states 100000
set skip on lo
queue rootq on tun0 bandwidth 100M
queue std parent rootq bandwidth 95M
queue test parent rootq bandwidth 20K, max 20K default
* Heinrich Rebehn <[hidden email]> [2014-04-20 22:51]:
> queue rootq on tun0 bandwidth 100M
> queue std parent rootq bandwidth 95M
> queue test parent rootq bandwidth 20K, max 20K default
> - why is queue “test” allowing 1.02Mb/s although the limit is 20K?
timer resolution isn't good enough to go that low on such a fast
> - is it correct that the parent queue “rootq" does not show any usage?
yes, only leaf queues can get traffic with the hfsc algorithm.
i'd really like to see that change, but it isn't easy at all.
> - is queueing supposed to work at all on tun(4) devices?
as in, it works but probably has no effect since shit is buffered