Just wanted to send out a quick thank you to all the PF developers. 
I've just completed a "simple" altq setup on a 3.2 -stable box to cap a
user's outgoing bandwidth.  Tested with the limited IP, and with an IP
in the default class, works great.  I'm looking forward to upgrading
these boxes later on to 3.3 -release with the new pf-merged altq code. 
:)

I'd like to offer up my altq.conf file for two purposes: 1) so that
future users searching the archive might find an easy sample to start
from, and 2) for the list folk to critique it for accuracy.  With this
config, I wanted to limit an individual IP to a portion (15%) of the
bandwidth during heavy usage.  Everyone else should fall into the
default class.

##############################
interface dc1 bandwidth 1M cbq
class cbq dc1 root NULL pbandwidth 100

# meta classes
class cbq dc1 ctl_class root pbandwidth 4 control
class cbq dc1 def_class root borrow pbandwidth 95 default

# Allocate bandwidth
class cbq dc1 foo_class def_class borrow pbandwidth 15
        filter dc1 foo_class 0 0 192.168.0.42 netmask 0xffffffff 0 0
        filter dc1 foo_class 192.168.0.42 netmask 0xffffffff 0 0 0 0
##############################

Thanks again!
-J.



Reply via email to