为什么我的PROFTPD在局域网中传输和在因特网上传输速度不一样

由 mars_diy 在 06-26-2003 11:13 发表:

为什么我的PROFTPD在局域网中传输和在因特网上传输速度不一样

我用 ftp://192.168.0.1 登录传输的速度跟我限制的速度是一样的,但是我用域名登录的时候上传和下载的速度都只有50K了,不知道是怎么回事,下面是我的PROFTPD.CONF 我的PORFTPD版本是1.2.9-RC1

ServerName "ProFTPD Default Installation"

ServerType standalone

ServerAdmin [email protected]

DefaultServer on

ServerIdent off

UseReverseDNS off

#IdentLookups off

PassivePorts 20000 30000 #被动模式端口段

#AuthPAM on

#AuthPAMAuthoritative on

#AuthPAMConfig ftp

#ScoreboardPath /usr/bin

Umask 022

##防止DoS攻击,设置最大的了进程:

MaxInstances 30

Port 21 is the standard FTP port.

Port 21

Set the user and group under which the server will run.

User ftpuser

Group ftpuser

RequireValidShell off

DenyFilter \./|.ftpaccess #DenyFilter做一些过滤,正则表达式

DeferWelcome on #显示欢迎信息

PathDenyFilter "(^\.ftpaccess$)" #同DenyFilter 过滤用

#不显示给用户真实的用户、组

DirFakeUser On FTP

DirFakeGroup On FTP

#关于超时

TimeoutLogin 120

TimeoutIdle 600

TimeoutNoTransfer 900

TimeoutStalled 3600

MultilineRFC2228 off

SystemLog /var/log/proftpd_sys.log

ExtendedLog /var/log/proftp.log ALL

DisplayLogin .msg

DisplayFirstChdir .msgss

#限制用户在当前目录

DefaultRoot ~

允许尝试登陆的次数

MaxLoginAttempts 3

#连接时的MSG

DisplayConnect /etc/proftpd/connect.msg

DisplayGoAway /etc/proftpd/goway.msg

#输入quit命令后的MSG

DisplayQuit /etc/proftpd/quit.msg

AllowForeignAddress on #要允许 FXP 写成 on

AllowRetrieveRestart on #支持断点续传

AllowStoreRestart on

#允许登录

1<limit login="">   
2  
3AllowAll   
4  
5</limit>

AllowOverwrite off #禁止重写覆盖,后面打开允许续传

#匿名帐号设置

 1<anonymous ~ftp="">
 2<limit login="">   
 3  
 4AllowAll   
 5  
 6</limit>   
 7  
 8  
 9  
10User ftp   
11  
12Group ftp   
13  
14# We want clients to be able to login with "anonymous" as well as "ftp"   
15  
16UserAlias anonymous ftp   
17  
18# 隐藏所有 'root' 用户的文件。   
19  
20HideUser root   
21  
22  
23  
24#禁止任何写入   
25  
26<limit write="">   
27  
28DenyAll   
29  
30</limit>
31<directory *="">   
32  
33HideNoAccess on   
34  
35  
36  
37# 禁止所有客户访问隐藏文件。   
38  
39<limit dirs="" read="">   
40  
41IgnoreHidden on   
42  
43</limit>
44<limit read="">   
45  
46AllowAll #允许所有用户对该目录有读的权限   
47  
48</limit>
49</directory>   
50  
51MaxClientsPerHost 2   
52  
53MaxClientsPerUser 10   
54  
55MaxClients 10 "Sorry, max %m users -- try again later"   
56  
57</anonymous>

#上传帐号设置

 1<anonymous ~upload="">
 2<limit login="">   
 3  
 4AllowAll   
 5  
 6</limit>   
 7  
 8  
 9  
10User upload   
11  
12Group ftp   
13  
14  
15  
16<limit write="">   
17  
18DenyAll   
19  
20</limit>   
21  
22  
23  
24AllowStoreRestart on #允许上传目录,可以续传,不能覆盖   
25  
26AllowOverwrite off   
27  
28  
29  
30<directory *="">   
31  
32  
33  
34#上传目录允许存放(storing)文件但不允许检索、取回(retrieving)文件,允许创   
35  
36#建目录。   
37  
38<limit read=""> #允许取回   
39  
40DenyAll   
41  
42</limit>
43<limit stor=""> #允许存放   
44  
45AllowAll</limit></directory></anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus