由 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>
3> DenyAll
4>
5> </limit>
>
>
>
>
1<anonymous ftp="" incomming="">
2>
3> User ftpup
4>
5> Group ftpuser
6>
7>
8>
9> #只允许上传用户使用别名登录
10>
11> AuthAliasOnly on
12>
13> AuthUsingAlias on
14>
15> #AnonRequirePassword on
16>
17>
18>
19> #设置上传用户别名及上传用户密码
20>
21> UserAlias upload ftpup
22>
23> UserPassword upload $1$GHN8vLoX$jpEkxoFdAOrCd/p492lPs1
24>
25>
26>
27> <limit dele="" retr="" rmd="" rnfr=""> #不允许更改目录名、删除文件及目录、下载文件
28>
29> DenyAll
30>
31> </limit>
32>
33> </anonymous>
>
>
>
>
1<anonymous ftp="">
2>
3> User ftpdown
4>
5> Group ftpuser
6>
7>
8>
9> #只允许下载用户使用别名登录
10>
11> AuthAliasOnly on
12>
13> AuthUsingAlias on
14>
15> #AnonRequirePassword on
16>
17>
18>
19> #设置下载用户别名及上传用户密码
20>
21> UserAlias download ftpdown
22>
23> UserPassword download $1$eAkUOljf$HnfZbW3MPrtF3Ccn5501y.
24>
25>
26>
27> <directory ftp="" manage="">
28>
29> <limit all="">
30>
31> DenyAll
32>
33> </limit>
34>
35> </directory>
36>
37>
38>
39> <directory ftp="" lost+found="">
40>
41> <limit all="">
42>
43> DenyAll
44>
45> </limit>
46>
47> </directory>
48>
49> </anonymous>
>
>
>
>
>
> # A basic anonymous configuration, no upload directories. If you do not
>
> # want anonymous users, simply dele