View Single Post
  #4   (View Single Post)  
Old 18th May 2009
Enemy Enemy is offline
New User
 
Join Date: May 2009
Posts: 3
Arrow Is cbq a valid solution at all?!

Thanks for your advices, but it didn't work so far.

It seems that when I specified borrow in parent queues (inet_in and inet_out) I only allowed them to borrow from "grandparent" queue, which is 100Mb - so it is not 50% anymore, but really is the same as with no shaping at all! I also tried different approaches.
See (in attachment) what pfctl -sq -vv looks like when user2 is downloading (commented out user1 for simplicity)
On user2 machine wget shows stable 32K/s!

Quote:
i.e. if you want to control download assign rules to int_if, if you want to control upload assign rules to ext_if.
Yes, that's 100% true, I've changed the assignment accordingly

Code:
# Queues
# OUT
#pass in on $int_if from <user1_ips> to !$lan queue user1_out no state
pass in on $ext_if from <user2_ips> to !$lan queue user2_out no state
# IN
#pass out on $int_if from !$lan to <user1_ips> queue user1_in no state
pass out on $int_if from !$lan to <user2_ips> queue user2_in no state
assign default_* queues - is this really important in such a situation?
Attached Files
File Type: txt pfctlqlog.txt (9.4 KB, 87 views)
Reply With Quote