[pf4freebsd] Re: cbq with borrow not working
Max Laier
max at love2party.net
Wed Sep 15 21:13:36 PDT 2004
On Saturday 28 August 2004 15:58, Roman Mikus wrote:
> Hi all,
>
> I'm trying attached configuration of pf for shapping traffic of user
> "roman" and "nb". I need group of users sharing same 256kbit/s line with
> guaranted minimal traffic 32kbit/s for each. I used cbq queue with
> borrow option, but it is not working - user roman can only download at
> speed 32Kbit/s - queue "user1" doesn't borrow from its parent "group1"
> queue.
>
> Am I missing something?
>
> Thanks for any help.
Output of $pfctl -vsq would be helpful ... be sure to transfer some data to
the individual peers so that borrowing should get exercised.
You can also watch the counters live with $pfctl -vvsq to see where the
bandwidth is going to.
> roman
>
> my pf.conf looks like this:
>
> int_if = "rl1"
> ext_if = "rl0"
> internal_net="192.168.1.0/24"
> external_addr="10.0.0.101"
>
> scrub in all
>
> altq on $int_if cbq queue { std group1 group2 }
> queue std cbq(default)
>
> queue group1 bandwidth 256Kb cbq { user1 user2 }
> queue user1 bandwidth 32Kb cbq(borrow)
> queue user2 bandwidth 32Kb cbq(borrow)
>
> queue group2 bandwidth 512Kb cbq { user3 user4 } # not used yet
> queue user3 bandwidth 32Kb cbq(borrow) # not used yet
> queue user4 bandwidth 32Kb cbq(borrow) # not used yet
>
> nat on $ext_if from $internal_net to any -> ($ext_if)
>
> roman = "192.168.1.11"
> nb = "192.168.1.10"
>
> pass in all
> pass out all
>
> pass out on $int_if from any to $roman queue user1
> pass out on $int_if from any to $nb queue user2
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20040916/1a5f473b/attachment.bin
More information about the freebsd-pf
mailing list