Bandwidth control of PROFTPD and Wu-ftp

Source: Internet
Author: User
Tags ftp

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.