ext_if="fxp0" int_if="fxp1" lan="192.168.0.2" altq on $ext_if cbq bandwidth 10Mb queue {std,lan_up} altq on $int_if cbq bandwidth 10Mb queue {std2,lan_down} queue std bandwidth 10% cbq(default) queue std2 bandwidth 10% cbq(default) queue lan_up bandwidth 50% priority 6 cbq(red) queue lan_down bandwidth 50% priority 6 cbq(red) #nat on $ext_if from $int_if:network to any -> ($ext_if) pass in quick on $ext_if from any to $lan pass out quick on $int_if from any to $lan queue lan_down pass in quick on $int_if from $lan to any pass out quick on $ext_if from $lan to any queue lan_up block quick all