Limit bandwidth

Revision as of 19:10, 17 August 2015 by WikiFreak (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Sometimes you might want to block (restrict) your bandwidth.


Install

sudo apt-get install wondershaper


Set the limit

In terminal find out what is the name of the interface connected to your internet by using ifconfig.

# wondershaper [interface] [downlink] [uplink]

sudo wondershaper eth0 1024 256
  • Download speed 128KB = 1024 Kbits
  • Upload speed 32KB = 256 Kbits

NOTE: That will limit ANYTHING in your PC, for example the torrent downloader, firefox, Samba, etc..

Other values

  • 1024KB = 8192Kbits


Clear settings

sudo wondershaper clear eth0


Source: http://askubuntu.com/questions/20872/how-do-i-limit-internet-bandwidth