|
|
我做proftp站点,做了网速限制。我用anonymous用户下载时,表面看上去没有问题,一个进程限制在100K的网速,可是一旦手工暂停,然后续传的话,一个进程就会占用我限制的全部进程数的网速(600K)。
我的proftpd.conf如下:
ServerName "ftp site"
ServerType standalone
DefaultServer on
Port 21
Umask 022
MaxInstances 6
User ftp
Group ftp
DefaultRoot /var/www/html/test/ftp ftpuser
AllowRetrieveRestart on
AllowStoreRestart on
UseReverseDNS off
IdentLookups off
TimesGMT off
MaxClients 6 "too much man"
MaxClientsPerHost 2
PassivePorts 65400 65420
RootLogin off
RequireValidShell off
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory /var/www/html/test/ftp>
AllowOverwrite on
TransferRate STOR 100
TransferRate RETR 100
<Limit WRITE>
Denyall
</Limit>
</Directory>
<Directory /var/www/html/test/ftp/upload/*>
<Limit READ>
Allowall
</Limit>
<Limit DELE>
Denyall
</Limit>
<Limit RMD>
Denyall
</Limit>
<Limit WRITE>
Allowall
</Limit>
</Directory>
<Anonymous /var/www/html/test/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 6
TransferRate RETR 100
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
初学者求教 |
|