Bandwidth control on WWW and FTP

I am using ProFTPD and Apache 2.0 as my WWW and FTP server. What are the normal configure to control the bandwidth usage?

For example, I have a 2 MB (up/down) line. How do I limit the line speed per connection to about 0.1MB?

For Apache 2.0, is it a must to install modules?

For ProFTPD, is these the only way?:

Code:
<Anonymous ~ftp>
    # ...etc....
        RateWriteBPS                    16384           # all writes at max 16K/s
        <Directory slow>
                RateReadBPS             1024            # 1K/s max
                RateReadFreeBytes       64000           # less than 64KB at full speed
                RateReadHardBPS         on              # after 64KB xfer _forced_ down to 1K/s
        </Directory>
        <Directory pub/win95>
                RateReadBPS             8192            # 8K/s max
                RateReadFreeBytes       256000          # until 256KB files at full speed, then 8K/s
        </Directory>
</Anonymous>
Thanks!!
Hope we could share our knowledge here...

 

 

 

 

Top