These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Limit Download Speed on the new forum.
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.
For wget:
--limit-rate=amount
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.
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: http://mod-qos.sourceforge.net/index.html#usecases (scroll a little bit down, as there's no link to get directly to bandwidth).
--
Check out the forum guidelines!