сделал так:
altq on $ext_if cbq bandwidth 30Mb queue { normal, high, prio }
queue normal bandwidth 40% priority 1 cbq(default borrow)
queue high bandwidth 50% priority 5 cbq(borrow ecn)
queue prio bandwidth 10% priority 7 cbq(borrow)
...
pass out quick on $ext_if proto tcp to any port ssh keep state queue prio
pass out quick on $ext_if proto { tcp, udp } to any port domain keep state queue prio
pass out quick on $ext_if proto icmp all keep state queue prio
pass out quick on $ext_if proto tcp from ($ext_if) port www keep state queue high
pass out quick on $ext_if keep state queue normal
будет работать? в смысле глупых ошибок нет? смысл в том чтобы разделить трафик между веб-сервером и локалкой.