Limit bandwidth

Revision as of 20:09, 17 August 2015 by WikiFreak (talk | contribs) (Created page with "Category:Linux Sometimes you might want to block (restrict) your bandwidth. =Install= <syntaxhighlight lang="bash"> sudo apt-get install wondershaper </syntaxhighlight...")
(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