Add in/etc/ftpaccess: THROUGHPUT/HOME/FTP * * 64000 0.5 *
This means that the download bandwidth is limited to 64K for all IP (last *), halving the speed of each file (that 0.5).
I used a 2.5.x,man page with a whole lot of it. You can do it with man ftpaccess. :-)
This is the patch of PROFTPD 1.2.0pre2 flow control. It takes the original proftpd source! Relevant programs can be found under ftp://swallow.twbbs.org/Linux/FTP/
Usage: 1. If your proftpd-1.2.0pre2.tar.gz solution is in proftpd-1.2.0pre2/
Put this patch proftpd-1.2.0pre2/the same level directory, play patch < Proftpd-1.2.0pre2-bandwidth.patch if you put it under proftpd-1.2.0pre2/Patch-p1 & Lt Proftpd-1.2.0pre2-bandwidth.patch 2. Re-make your source!
System setting: 1. Provide three control flow function (only the next pass) can be located in Server config,
Bandwidth: Total bandwidth MaxBandWidth: Maximum bandwidth per line minbandwidth: Minimum frequency width per line
Must be an integer, representing a bit group/sec (Bytes/second)
Three functional relationships: Minbandwidth > MaxBandWidth > Bandwidth
2.-Example 1. Set bandwidth 4096
If there are 4 people online, each person's traffic is 4,096% 424 bits/sec
-Example 2. Set bandwidth 4096 MaxBandWidth 3072
If there are 1 people online, each person's traffic is 3,072 bits/sec If there are 2 people online, everyone's traffic is 4096%2 48-bit/sec
The following analogy
-Example 3. Set Bandwidth 3072 minbandwidth 1024
If there are 1 people online, each person's traffic is 3,072 bits/sec If there are 2 people online, everyone's traffic is 3,072% 236 bits/sec
If there are 3 people online, each person's traffic is 3,072% 324 bits/sec
If there are 4 people online, each person's traffic is 1024 bits per second and the following analogy