How do I limit internet bandwidth?












53















I am getting complaints that I consume lots of internet bandwidth.



Is there any software that can limit internet bandwidth on my computer from my own computer? I use Firefox as browser and use bittorrent and download software from software center.



(Is there also a way to monitor it?)










share|improve this question

























  • Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

    – user123456
    Oct 3 '16 at 7:58











  • use the tc command with iptables, use tcpump or iperf to monitor it

    – hello moto
    Jun 13 '18 at 6:14


















53















I am getting complaints that I consume lots of internet bandwidth.



Is there any software that can limit internet bandwidth on my computer from my own computer? I use Firefox as browser and use bittorrent and download software from software center.



(Is there also a way to monitor it?)










share|improve this question

























  • Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

    – user123456
    Oct 3 '16 at 7:58











  • use the tc command with iptables, use tcpump or iperf to monitor it

    – hello moto
    Jun 13 '18 at 6:14
















53












53








53


19






I am getting complaints that I consume lots of internet bandwidth.



Is there any software that can limit internet bandwidth on my computer from my own computer? I use Firefox as browser and use bittorrent and download software from software center.



(Is there also a way to monitor it?)










share|improve this question
















I am getting complaints that I consume lots of internet bandwidth.



Is there any software that can limit internet bandwidth on my computer from my own computer? I use Firefox as browser and use bittorrent and download software from software center.



(Is there also a way to monitor it?)







software-recommendation resource-limiting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 '17 at 12:31









Zanna

50.8k13136241




50.8k13136241










asked Jan 10 '11 at 8:53









Santosh LinkhaSantosh Linkha

86471731




86471731













  • Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

    – user123456
    Oct 3 '16 at 7:58











  • use the tc command with iptables, use tcpump or iperf to monitor it

    – hello moto
    Jun 13 '18 at 6:14





















  • Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

    – user123456
    Oct 3 '16 at 7:58











  • use the tc command with iptables, use tcpump or iperf to monitor it

    – hello moto
    Jun 13 '18 at 6:14



















Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

– user123456
Oct 3 '16 at 7:58





Setting a firewall for advertising or non-wanting IPs would also diminish the bandwidth

– user123456
Oct 3 '16 at 7:58













use the tc command with iptables, use tcpump or iperf to monitor it

– hello moto
Jun 13 '18 at 6:14







use the tc command with iptables, use tcpump or iperf to monitor it

– hello moto
Jun 13 '18 at 6:14












1 Answer
1






active

oldest

votes


















59














You have 2 easy to use via terminal. Wondershaper and Trickle. There are more here: How to limit internet speed?



Anyway the basics are:



sudo apt-get install wondershaper


In terminal find out what is the name of the interface connected to your internet by using ifconfig. Could be eth0, eth1, eth2, etc... In my case is eth1. So, I would do this:



sudo wondershaper eth1 1024 256


This will give me a Download speed of 1024 Kbits and 256 Kbits Upload. Which are 128KB and 16KB.



If you want to reset that do this sudo wondershaper clear eth1



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



Another program is Trickle



To install do this:



sudo apt-get install trickle


To run firefox with a maximum of 120KB/s download and 32KB/s upload, run



trickle -d 120 -u 32 firefox


In my case I recommend wondershaper.



If you want more info for any of the two after installed type man wondershaper or man trickle depending on the one you installed.






share|improve this answer





















  • 1





    Is it possible to limit/reverse internet bandwidth for each program instead of per device?

    – Nur
    May 2 '13 at 1:41











  • @Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

    – Luis Alvarado
    May 2 '13 at 1:43






  • 1





    Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

    – kenn
    Jan 25 '14 at 13:06








  • 1





    WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

    – Karl Morrison
    Jun 29 '15 at 18:52








  • 1





    I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

    – Karl Morrison
    Jun 30 '15 at 8:13











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f20872%2fhow-do-i-limit-internet-bandwidth%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









59














You have 2 easy to use via terminal. Wondershaper and Trickle. There are more here: How to limit internet speed?



Anyway the basics are:



sudo apt-get install wondershaper


In terminal find out what is the name of the interface connected to your internet by using ifconfig. Could be eth0, eth1, eth2, etc... In my case is eth1. So, I would do this:



sudo wondershaper eth1 1024 256


This will give me a Download speed of 1024 Kbits and 256 Kbits Upload. Which are 128KB and 16KB.



If you want to reset that do this sudo wondershaper clear eth1



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



Another program is Trickle



To install do this:



sudo apt-get install trickle


To run firefox with a maximum of 120KB/s download and 32KB/s upload, run



trickle -d 120 -u 32 firefox


In my case I recommend wondershaper.



If you want more info for any of the two after installed type man wondershaper or man trickle depending on the one you installed.






share|improve this answer





















  • 1





    Is it possible to limit/reverse internet bandwidth for each program instead of per device?

    – Nur
    May 2 '13 at 1:41











  • @Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

    – Luis Alvarado
    May 2 '13 at 1:43






  • 1





    Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

    – kenn
    Jan 25 '14 at 13:06








  • 1





    WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

    – Karl Morrison
    Jun 29 '15 at 18:52








  • 1





    I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

    – Karl Morrison
    Jun 30 '15 at 8:13
















59














You have 2 easy to use via terminal. Wondershaper and Trickle. There are more here: How to limit internet speed?



Anyway the basics are:



sudo apt-get install wondershaper


In terminal find out what is the name of the interface connected to your internet by using ifconfig. Could be eth0, eth1, eth2, etc... In my case is eth1. So, I would do this:



sudo wondershaper eth1 1024 256


This will give me a Download speed of 1024 Kbits and 256 Kbits Upload. Which are 128KB and 16KB.



If you want to reset that do this sudo wondershaper clear eth1



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



Another program is Trickle



To install do this:



sudo apt-get install trickle


To run firefox with a maximum of 120KB/s download and 32KB/s upload, run



trickle -d 120 -u 32 firefox


In my case I recommend wondershaper.



If you want more info for any of the two after installed type man wondershaper or man trickle depending on the one you installed.






share|improve this answer





















  • 1





    Is it possible to limit/reverse internet bandwidth for each program instead of per device?

    – Nur
    May 2 '13 at 1:41











  • @Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

    – Luis Alvarado
    May 2 '13 at 1:43






  • 1





    Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

    – kenn
    Jan 25 '14 at 13:06








  • 1





    WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

    – Karl Morrison
    Jun 29 '15 at 18:52








  • 1





    I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

    – Karl Morrison
    Jun 30 '15 at 8:13














59












59








59







You have 2 easy to use via terminal. Wondershaper and Trickle. There are more here: How to limit internet speed?



Anyway the basics are:



sudo apt-get install wondershaper


In terminal find out what is the name of the interface connected to your internet by using ifconfig. Could be eth0, eth1, eth2, etc... In my case is eth1. So, I would do this:



sudo wondershaper eth1 1024 256


This will give me a Download speed of 1024 Kbits and 256 Kbits Upload. Which are 128KB and 16KB.



If you want to reset that do this sudo wondershaper clear eth1



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



Another program is Trickle



To install do this:



sudo apt-get install trickle


To run firefox with a maximum of 120KB/s download and 32KB/s upload, run



trickle -d 120 -u 32 firefox


In my case I recommend wondershaper.



If you want more info for any of the two after installed type man wondershaper or man trickle depending on the one you installed.






share|improve this answer















You have 2 easy to use via terminal. Wondershaper and Trickle. There are more here: How to limit internet speed?



Anyway the basics are:



sudo apt-get install wondershaper


In terminal find out what is the name of the interface connected to your internet by using ifconfig. Could be eth0, eth1, eth2, etc... In my case is eth1. So, I would do this:



sudo wondershaper eth1 1024 256


This will give me a Download speed of 1024 Kbits and 256 Kbits Upload. Which are 128KB and 16KB.



If you want to reset that do this sudo wondershaper clear eth1



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



Another program is Trickle



To install do this:



sudo apt-get install trickle


To run firefox with a maximum of 120KB/s download and 32KB/s upload, run



trickle -d 120 -u 32 firefox


In my case I recommend wondershaper.



If you want more info for any of the two after installed type man wondershaper or man trickle depending on the one you installed.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 17 at 16:19









Jo Liss

295211




295211










answered Jan 10 '11 at 9:20









Luis AlvaradoLuis Alvarado

145k135486653




145k135486653








  • 1





    Is it possible to limit/reverse internet bandwidth for each program instead of per device?

    – Nur
    May 2 '13 at 1:41











  • @Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

    – Luis Alvarado
    May 2 '13 at 1:43






  • 1





    Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

    – kenn
    Jan 25 '14 at 13:06








  • 1





    WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

    – Karl Morrison
    Jun 29 '15 at 18:52








  • 1





    I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

    – Karl Morrison
    Jun 30 '15 at 8:13














  • 1





    Is it possible to limit/reverse internet bandwidth for each program instead of per device?

    – Nur
    May 2 '13 at 1:41











  • @Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

    – Luis Alvarado
    May 2 '13 at 1:43






  • 1





    Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

    – kenn
    Jan 25 '14 at 13:06








  • 1





    WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

    – Karl Morrison
    Jun 29 '15 at 18:52








  • 1





    I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

    – Karl Morrison
    Jun 30 '15 at 8:13








1




1





Is it possible to limit/reverse internet bandwidth for each program instead of per device?

– Nur
May 2 '13 at 1:41





Is it possible to limit/reverse internet bandwidth for each program instead of per device?

– Nur
May 2 '13 at 1:41













@Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

– Luis Alvarado
May 2 '13 at 1:43





@Nur For what I know, it is possible but involves some kernel editing and other stuff outside of the user space. It would be awesome to have a similar approach as tools like the Windows Netlimiter. Of course netlimiter connects a process that manages the connection sharing, but the idea remains the same and would help a lot in network cases where this applies.

– Luis Alvarado
May 2 '13 at 1:43




1




1





Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

– kenn
Jan 25 '14 at 13:06







Trickle can do that askubuntu.com/questions/776/… trickle -u (upload limit in KB/s) -d (download limit in KB/s) application

– kenn
Jan 25 '14 at 13:06






1




1





WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

– Karl Morrison
Jun 29 '15 at 18:52







WARNING: as of writing this comment trickle only works for 32-bit operating systems, it does not support 64-bit

– Karl Morrison
Jun 29 '15 at 18:52






1




1





I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

– Karl Morrison
Jun 30 '15 at 8:13





I might have to rephase because a person was able to get it working on 64bit vivid apparantly. I put a bug report in the github if you want to see more. Im running 14.04 and it does not work.

– Karl Morrison
Jun 30 '15 at 8:13


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f20872%2fhow-do-i-limit-internet-bandwidth%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅