[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
traffic shaping bittorrent
What's the best way to shape multi-user bittorrent traffic with the pf? In
hope to control the aggregated upload rate, I tried to implement a
queueing system very similar to the "small home network" example as
described in the PF faq: http://www.openbsd.org/faq/pf/queueing.html :
altq on $ext_if priq bandwidth 512Kb queue
{ qout-rest, qout-ssh, qout-dns, qout-tor, qout-tcpack }
queue qout-rest priq(default)
queue qout-ssh priority 4 priq(red)
queue qout-dns priority 5
queue qout-tcpack priority 6
queue qout-tor priority 0 priq(red)
altq on $int_if cbq bandwidth 3Mb queue
{ qin-rest, qin-ssh, qin-dns, qin-tor, qin-boss }
queue qin-rest cbq(default)
queue qin-ssh priority 4
queue qin-dns priority 5
queue qin-tor bandwidth 100Kb cbq
queue qin-boss bandwidth 200Kb cbq(borrow)
....
pass out on $ext_if inet proto tcp from any to any port 6881:6889
keep state queue qout-tor
pass out on $int_if inet proto tcp from any to any port 6881:6889
keep state queue qin-tor
What am I missing? j
(Running x86 -current on a IPed filtering bridge)