intf = "lo0" developerhosts = "10.0.0.0/24" employeehosts = "10.0.1.0/24" altq on lo0 cbq( red ecn ) bandwidth 10Mb qlimit 100 tbrsize 5000 queue { std http mail ssh } queue std bandwidth 10% qlimit 1 cbq( default ) queue http bandwidth 60% priority 2 cbq( red borrow ) { employees developers } queue developers bandwidth 60% queue employees bandwidth 40% queue mail bandwidth 10% priority 0 cbq( red ecn borrow ) queue ssh bandwidth 20% cbq( borrow ) { ssh_interactive ssh_bulk } queue ssh_interactive bandwidth 30% priority 7 queue ssh_bulk bandwidth 70% priority 0 qlimit 60 block return out on lo0 inet all queue std pass out on lo0 inet proto tcp from 10.0.0.0/24 to any port = 80 flags S/SA queue developers pass out on lo0 inet proto tcp from 10.0.1.0/24 to any port = 80 flags S/SA queue employees pass out on lo0 inet proto tcp from any to any port = 22 flags S/SA tos 0x10 queue ssh_interactive pass out on lo0 inet proto tcp from any to any port = 22 flags S/SA tos 0x08 queue ssh_bulk pass out on lo0 inet proto tcp from any to any port = 25 flags S/SA queue mail