ext_if="xl0" int_if="xl1" steinan="{129.241.123.0/24, 129.241.139.0/23}" scrub in all altq on $ext_if cbq bandwidth 100Mb queue {std, skumle_ting} queue std bandwidth 99% cbq(borrow default) queue skumle_ting bandwidth 100Kb {dc, torrent} queue dc bandwidth 50% cbq(borrow red) queue torrent bandwidth 50% cbq(borrow red) block all antispoof quick for $int_if inet pass quick on $int_if all pass out on $ext_if inet keep state pass in quick on {$ext_if,$int_if} proto tcp from any to $ext_if:0 port ssh pass in quick on $int_if proto tcp from any to ! 129.241.123.0/24 port 1412 queue dc pass in quick on $int_if proto tcp from any to ! 129.241.138.0/23 port 1412 queue dc pass in quick on $int_if proto tcp from any to ! 129.241.123.0/24 port 29105 queue torrent pass in quick on $int_if proto tcp from any to ! 129.241.138.0/23 port 29105 queue torrent