Limit Download Speed

3 posts / 0 new
Last post
#1 Tue, 12/20/2016 - 05:46

Limit Download Speed

I have installed webmin and virtualmin on centos and I'm using it as a download server. I want to know that is it possible to limit download speed for users? ( something around 300kbps and without using any php scripts ). and I use wget command for downloading files.

Tue, 12/20/2016 - 06:47
Diabolico's picture

For wget:

       Limit the download speed to amount bytes per second.  Amount may
       be expressed in bytes, kilobytes with the k suffix, or
       megabytes with the m suffix.  For example, --limit-rate=20k will limit
       the retrieval rate to 20KB/s.  This is useful when, for
       whatever reason, you don't want Wget to consume
       the entire available bandwidth.

Other solution would be to use Apache and mod_ratelimit.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sun, 12/25/2016 - 22:54
Joe's picture

You probably want a rate limiting module for Apache to limit it server-side.

There are several options, but mod_qos is probably the most complete and flexible (though it can be a little intimidating to get started with), and it is available in the EPEL repository, so it's easy to install. The docs for mod_qos have an example of bandwidth limiting here: (scroll a little bit down, as there's no link to get directly to bandwidth).


Check out the forum guidelines!

Topic locked