LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I Limit Bandwidth on a Per Connection Basis? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-limit-bandwidth-on-a-per-connection-basis-381479/)

farmerjoe 11-09-2005 11:10 AM

How do I Limit Bandwidth on a Per Connection Basis?
 
I run a large internet files site, however I have a problem. I need to cap the bandwidth for each user downloading a file at a specific rate. I've tried using things such as mod_bandwidth for the apache web server, but it seems that it cant set limits over 100 kilobytes/sec. I've also messed around with things like htb, but its seems that only allows you to place a total bandwidth usage on a specific port or service. I'd like to set a download rate cap at something like 250kb/sec for some users (who might not have an account at my website) and maybe a 500kb/sec cap (for users that do have accounts). I've seen various internet file download sites such as fileshack.com that cap their connections at 3 different rates depending on the user status. Capping on a per directory basis would even be great. Does anyone have any idea how I can accomplish something like this?

Thanks,
farmerjoe

born4linux 11-09-2005 07:28 PM

try checking this:

http://www.topology.org/src/bwshare/README.html


All times are GMT -5. The time now is 09:03 AM.