Ubuntu – How to limit Download/Upload bandwidth


How I can limit Download/Upload bandwidth for:

  • Entire OS.
  • One network interface.
  • Single application.

Best Answer

Limiting single interface is easy, but global rate limits need more complex rules as do application based rules. I'm not saying that it can't be done, but it requires quite a bit digging in to the internals of the networking.

Here is a quick How to on setting up a per interface limit

If you really want to set up application based rules, you should look in to some firewall framework, like shorewall, which have helper features to configure shaping. Even with these tools, it requires quite bit of forethought and testing to get it in to place. Doing something like this ad-hoc is not yet quite that easy.

Related Question