On Tue, Oct 26, 2004 at 03:47:27PM -0600, notrox wrote:
> I am running OpenBSD 3.5 and I am trying to do bandwidth limiting to a
> single IP.
> For some odd reason altq isnt borrowing from the root queue.
>
> ---------------------------------------------------------------------------------------------------------------------
> #pf.conf
>
> ext_if = "tun0"
> int_if = "dc0"
> lan = "192.168.1.0/24"
>
> scrub in all
>
>
> altq on $ext_if cbq bandwidth 400Kb queue {web, bt }
> queue web bandwidth 300Kb cbq(default)
> queue bt bandwidth 100Kb cbq(borrow)
it has been some time since i used cbq - so forgive me if this
is a wrong suggestion - but have you tried also setting cbq
in the 'altq on' to be 'cbq(borrow)' ?
i remember having difficulty getting queues to borrow from their
parent and iirc, i fixed it by also setting borrow on the parent
queue of the childqueue which i wanted to be doing the borrowing.
i just tried 'echo "altq on lo0 cbq(borrow) bandwidth 100Kb queue {fir sec}" | \
pfctl -nvf-'
and it did not complain about the syntax of my altq line.
jared
--
[ openbsd 3.6 GENERIC ( oct 12 ) // i386 ]