Proftpd 连接延时很长

由 nrj 在 10-10-2004 09:37 发表:

Proftpd 连接延时很长

我的系统 Rhel AS U3, Proftpd 版本 1.2.10

内网,同一网段

现象:

客户端为CuteFTP 6.0, 当连接出现"Socket 已连接。正在等候欢迎消息..."后要等近10秒才显示连接成功,要求用户名和密码.

Proftpd 配置:

> quote: > > * * * > >
>
> # This is a basic ProFTPD configuration file (rename it to
>
> # 'proftpd.conf' for actual use. It establishes a single server
>
> # and a single anonymous login. It assumes that you have a user/group
>
> # "nobody" and "ftp" for normal operation and anon.
>
>
>
> ServerName "XXXX FTP SERVER"
>
> ServerType standalone
>
> DefaultServer on
>
> ServerIdent off
>
>
>
> #MaxLoginAttempts 3
>
> #MaxClientsPerUser 2
>
> #MaxClientsPerHost 1
>
>
>
> SystemLog /var/log/proftpd.log
>
> AllowStoreRestart on
>
> AllowForeignAddress on
>
> DisplayLogin welcome.msg
>
>
>
> #不允许 .ftpaccess 和 .htaccess 上传
>
> PathDenyFilter "(\\.ftpaccess)|(\\.htacess)$"
>
>
>
> # Port 21 is the standard FTP port.
>
> Port 21
>
>
>
> # Umask 022 is a good standard umask to prevent new dirs and files
>
> # from being group and world writable.
>
> Umask 022
>
>
>
> # To prevent DoS attacks, set the maximum number of child processes
>
> # to 30. If you need to allow more than 30 concurrent connections
>
> # at once, simply increase this value. Note that this ONLY works
>
> # in standalone mode, in inetd mode you should use an inetd server
>
> # that allows you to limit maximum number of processes per service
>
> # (such as xinetd).
>
> MaxInstances 30
>
>
>
> # Set the user and group under which the server will run.
>
> User nobody
>
> Group nobody
>
>
>
> # To cause every FTP user to be "jailed" (chrooted) into their home
>
> # directory, uncomment this line.
>
> DefaultRoot ~
>
>
>
> # Normally, we want files to be overwriteable.
>
> AllowOverwrite on
>
>
>
> # Bar use of SITE CHMOD by default
>
>

1<limit site_chmod="">   
2&gt;    
3&gt;  DenyAll   
4&gt;    
5&gt;  </limit>

>
>
>
>

 1<anonymous ftp="" incomming="">   
 2&gt;    
 3&gt;  User ftpup   
 4&gt;    
 5&gt;  Group ftpuser   
 6&gt;    
 7&gt;    
 8&gt;    
 9&gt;  #只允许上传用户使用别名登录   
10&gt;    
11&gt;  AuthAliasOnly on   
12&gt;    
13&gt;  AuthUsingAlias on   
14&gt;    
15&gt;  #AnonRequirePassword on   
16&gt;    
17&gt;    
18&gt;    
19&gt;  #设置上传用户别名及上传用户密码   
20&gt;    
21&gt;  UserAlias upload ftpup   
22&gt;    
23&gt;  UserPassword upload $1$GHN8vLoX$jpEkxoFdAOrCd/p492lPs1   
24&gt;    
25&gt;    
26&gt;    
27&gt;  <limit dele="" retr="" rmd="" rnfr=""> #不允许更改目录名、删除文件及目录、下载文件   
28&gt;    
29&gt;  DenyAll   
30&gt;    
31&gt;  </limit>   
32&gt;    
33&gt;  </anonymous>

>
>
>
>

 1<anonymous ftp="">   
 2&gt;    
 3&gt;  User ftpdown   
 4&gt;    
 5&gt;  Group ftpuser   
 6&gt;    
 7&gt;    
 8&gt;    
 9&gt;  #只允许下载用户使用别名登录   
10&gt;    
11&gt;  AuthAliasOnly on   
12&gt;    
13&gt;  AuthUsingAlias on   
14&gt;    
15&gt;  #AnonRequirePassword on   
16&gt;    
17&gt;    
18&gt;    
19&gt;  #设置下载用户别名及上传用户密码   
20&gt;    
21&gt;  UserAlias download ftpdown   
22&gt;    
23&gt;  UserPassword download $1$eAkUOljf$HnfZbW3MPrtF3Ccn5501y.   
24&gt;    
25&gt;    
26&gt;    
27&gt;  <directory ftp="" manage="">   
28&gt;    
29&gt;  <limit all="">   
30&gt;    
31&gt;  DenyAll   
32&gt;    
33&gt;  </limit>   
34&gt;    
35&gt;  </directory>   
36&gt;    
37&gt;    
38&gt;    
39&gt;  <directory ftp="" lost+found="">   
40&gt;    
41&gt;  <limit all="">   
42&gt;    
43&gt;  DenyAll   
44&gt;    
45&gt;  </limit>   
46&gt;    
47&gt;  </directory>   
48&gt;    
49&gt;  </anonymous>

>
>
>
>
>
> # A basic anonymous configuration, no upload directories. If you do not
>
> # want anonymous users, simply dele

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus