Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-09-2005, 12:10 PM   #1
Registered: Oct 2004
Location: Texas
Distribution: Ubuntu - Home, RHEL4 - Server
Posts: 96

Rep: Reputation: 15
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 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?

Old 11-09-2005, 08:28 PM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try checking this:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download limit gb/month (per-user basis) shaman Linux - Networking 1 01-06-2006 06:14 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM
How limit bandwidth cuencano Linux - Networking 10 07-18-2005 05:57 AM
Limit Bandwidth andy7t Linux - Networking 6 11-30-2004 03:44 AM
limit CPU on a per user basis? adenardo Linux - Security 1 11-13-2001 12:57 PM

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration