Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a linux server with spare bandwidth. I thought about running an rtorrent client and seeding some popular distros images. However, I can't allow myself to curtail the normal operation of the server (I'm only willing to spare "unused" bandwidth). I thought about using rtorrent and shaping traffic using tc. After reading a bit about it, it seems that what I want to do is to use the pfifo_fast qdisc and somehow mark all of the network traffic of rtorrent as having priority 2, while the normal http server having an higher priority. However, I couldn't find an easy way to do it.

Can someone point out the right (and hopefully simple) way to do it?

share|improve this question

migrated from serverfault.com Mar 28 '13 at 13:42

This question came from our site for system and network administrators.

1 Answer 1

I'm looking into a similar problem. The way to do it is to identify Bittorrent traffic so that iptables can handle it as a low-priority traffic class. If you can bind your Bittorrent client to a specific interface, you have an easy way to identify the Bittorrent traffic - it all comes through that interface. Likewise if you can specify inbound and inbound ports. Otherwise, you are left with looking at the packets to guess if they are Bittorrent traffic, using IPP2P and before passing the packets to iptables - but users report it does not catch everything.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.