Date: Thu, 16 Sep 2004 04:13:31 -0000 From: "Roman Mikus" <roman@zutom.sk> To: <pf4freebsd@freelists.org> Subject: [pf4freebsd] cbq with borrow not working Message-ID: <8346D753500D004191B4F3E45178065B68F29F@medusa.zutomxx>
next in thread | raw e-mail | index | archive | help
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.
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8346D753500D004191B4F3E45178065B68F29F>
