请教proftpd的关于网速的限制问题?

由 richye 在 10-09-2004 22:34 发表:

请教proftpd的关于网速的限制问题?

我做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

 1<directory ftp="" html="" test="" var="" www="">   
 2  
 3AllowOverwrite on   
 4  
 5TransferRate STOR 100   
 6  
 7TransferRate RETR 100   
 8  
 9<limit write="">   
10  
11Denyall   
12  
13</limit>
14</directory>
 1<directory *="" ftp="" html="" test="" upload="" var="" www="">
 2<limit read="">   
 3  
 4Allowall   
 5  
 6</limit>
 7<limit dele="">   
 8  
 9Denyall   
10  
11</limit>
12<limit rmd="">   
13  
14Denyall   
15  
16</limit>
17<limit write="">   
18  
19Allowall   
20  
21</limit>
22</directory>
 1<anonymous ftp="" html="" test="" var="" www="">   
 2  
 3User ftp   
 4  
 5Group ftp   
 6  
 7UserAlias anonymous ftp   
 8  
 9  
10  
11# Limit the maximum number of anonymous logins   
12  
13MaxClients 6   
14  
15TransferRate RETR 100   
16  
17  
18  
19DisplayLogin</anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus