вот кусок конфига ПФ
Код: Выделить всё
###########################################################################
altq on $ext_if cbq bandwidth 90Mb queue { default_out inet_out }
queue default_out cbq ( default, borrow, red ) bandwidth 1Mb
queue inet_out bandwidth 80Mb { u12_out u4_out }
queue u12_out bandwidth 40Mb cbq(red)
queue u4_out bandwidth 40Mb priority 6 cbq(red)
altq on $int_if cbq bandwidth 90Mb queue { default_in inet_in }
queue default_in cbq ( default, borrow, red ) bandwidth 1Mb
queue inet_in bandwidth 80Mb { u12_in u4_in }
queue u12_in bandwidth 35Mb cbq(red)
queue u4_in bandwidth 35Mb priority 6 cbq(red)
#############################################################################
nat on $ext_if from <local_net> to any -> ($ext_if)
#############################################################################
pass in quick on $int_if from <u12> keep state tag U12 queue u12_in
pass out quick on $ext_if tagged U12 queue u12_out
pass in quick on $int_if from <u4> keep state tag U4 queue u4_in
pass out quick on $ext_if tagged U4 queue u4_out
##############################################################################
Код: Выделить всё
pfctl -vvsq
queue root_rl0 on rl0 bandwidth 90Mb priority 0 cbq( wrr root ) {default_out, inet_out}
[ pkts: 48288 bytes: 22237125 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
queue default_out on rl0 bandwidth 1Mb cbq( red borrow default )
[ pkts: 48288 bytes: 22237125 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 6082 suspends: 0 ]
queue inet_out on rl0 bandwidth 80Mb {u12_out, u4_out}
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
queue u12_out on rl0 bandwidth 40Mb cbq( red )
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
queue u4_out on rl0 bandwidth 40Mb priority 6 cbq( red )
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
INACTIVE altq on ne0 cbq bandwidth 90Mb tbrsize 12000 - возможно именно тут проблема?
INACTIVE queue root_ne0 on ne0 bandwidth 90Mb priority 0 cbq( wrr root ) {default_in, inet_in}
INACTIVE queue default_in on ne0 bandwidth 1Mb cbq( red borrow default )
INACTIVE queue inet_in on ne0 bandwidth 80Mb {u12_in, u4_in}
INACTIVE queue u12_in on ne0 bandwidth 35Mb cbq( red )
INACTIVE queue u4_in on ne0 bandwidth 35Mb priority 6 cbq( red )
queue root_rl0 on rl0 bandwidth 90Mb priority 0 cbq( wrr root ) {default_out, inet_out}
[ pkts: 48680 bytes: 22400743 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 78.4 packets/s, 261.79Kb/s ]
queue default_out on rl0 bandwidth 1Mb cbq( red borrow default )
[ pkts: 48680 bytes: 22400743 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 6094 suspends: 0 ]
[ measured: 78.4 packets/s, 261.79Kb/s ]
queue inet_out on rl0 bandwidth 80Mb {u12_out, u4_out}
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]
queue u12_out on rl0 bandwidth 40Mb cbq( red )
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]
queue u4_out on rl0 bandwidth 40Mb priority 6 cbq( red )
[ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]