Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my laptop, when I run any downloads, torrents, etc, browsing is crippled.

I read somewhere that you could configure your iptables powered router to prioritize certain network traffic.

Could I do the same on my pc for all network traffic? I would like to prioritize packets in the following order:

  1. SSH
  2. Gaming
  3. Browsing
  4. Chat
  5. Downloads/Torrents
share|improve this question
up vote 8 down vote accepted

The Linux kernel has the ability to do traffic shaping / QoS which can be set up using the tc(8) command (not iptables). The full details are too much to go in to an answer here, but as a first step you may want to look at the Linux Advanced Routing & Traffic Control howto.

There are also a number of applications that build on the tc command to allow you to more easily define shaping rules such as wondershaper or as part of a firewall system such as shorewall.

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.