[pf4freebsd] cbq with borrow not working

Roman Mikus roman at zutom.sk
Wed Sep 15 21:13:31 PDT 2004


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





More information about the freebsd-pf mailing list