Difference between revisions of "Limit bandwidth"

(Created page with "Category:Linux Sometimes you might want to block (restrict) your bandwidth. =Install= <syntaxhighlight lang="bash"> sudo apt-get install wondershaper </syntaxhighlight...")
 
 
Line 33: Line 33:
  
 
=Clear settings=
 
=Clear settings=
 
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo wondershaper clear eth0
 
sudo wondershaper clear eth0
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
Source: http://askubuntu.com/questions/20872/how-do-i-limit-internet-bandwidth

Latest revision as of 20:10, 17 August 2015


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