конфиг pf :
ext_if = "em0"
int_if = "em1"
localnet = "192.168.0.0/24"
set block-policy return
set skip on lo
match in all scrub (no-df)
queue rootq on em0 bandwidth 100M
queue inetq parent rootq bandwidth 22M
queue ssh parent inetq bandwidth 1M
queue icmp parent inetq bandwidth 1M
queue dns parent inetq bandwidth 1M
queue bulk parent inetq bandwidth 1M
queue tor parent inetq bandwidth 1M
queue std parent inetq bandwidth 1M default
queue http parent inetq bandwidth 1M
queue games parent inetq bandwidth 1M
pass on $int_if
pass out on $ext_if
pass on $ext_if
pass out on ext_if from $localnet to any nat-to ($ext_if)
block return out on $int_if inet all set queue std
pass in on $int_if inet proto icmp from any to any \ set queue (icmp)
pass in on $int_if inet proto udp from any to any port 6881 \ set queue (tor)
pass in on $int_if inet proto tcp from any to any port 80 \ set queue (http)
pass in on $int_if inet proto tcp from any to any port 80 \ set queue (http)
pass in on $int_if inet proto tcp from any to any port 80 \ set queue (games)
Конфиг файл таков, но работает так, будто никаких queues нет вообще, пропускает все на скорости, которую дает провайдер. Ставим качаться какой нибудь торент, смотрим очереди, и :
https://hostingkartinok.com/show-image.php?id=edda3cc92b581de3dc91eb627e59b5c7
https://hostingkartinok.com/show-image.php?id=86d6c39a599bf2d96d4cdd77218793d8
ничего не работает :(