由 euboy 在 03-01-2003 05:40 发表:
proftpd问题,请大虾帮忙看看
用proftpd做的ftp服务器,每次连接前基本要经过20几秒的时间才能连上,我的同学都以为服务器没开,太ft了!我的proftpd.conf文件如下:
ServerName "Debian"
ServerType inetd
DeferWelcome off
UseReverseDNS off # Enhance connection speed
#ServerIdent off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
#AuthUserFile /root/system_etc/ftpd.passwd
DisplayLogin welcome.msg
DisplayFirstChdir .message
DisplayConnect /home/ftp/login.msg
LsDefaultOptions "-l"
DenyFilter \./
Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
Port 21 is the standard FTP port.
Port 21
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 that the server normally runs at.
User nobody
Group nogroup
1<directory *="">
2
3# Umask 022 is a good standard umask to prevent new files and dirs
4
5# (second parm) from being group and world writable.
6
7Umask 022 022
8
9
10
11AllowRetrieveRestart on
12
13AllowOverwrite on
14
15AllowStoreRestart on
16
17</directory>
A basic anonymous configuration, no upload directories.
These lines are marked with ##proftpd.deb anon access## so that they
can be recognized, and edited by postinst. You can remove them once
you're sure you don't want to keep them around.
1<anonymous ~ftp="">
2
3AnonRequirePassword on
4
5User ftp
6
7Group nogroup
8
9UserAlias pub ftp
10
11
12
13RequireValidShell off
14
15
16
17# Limit the maximum number of anonymous logins
18
19MaxClients 10 "Sorry, max %m users -- try again later"
20
21MaxClientsPerHost 2 "Sorry, only 2 connections per ip"
22
23RateReadBPS 500000
24
25RateWriteBPS 750000
26
27
28
29# We want 'welcome.msg' displayed at login, and '.message' displayed
30
31# in each newly chdired directory.
32
33DisplayLogin welcome.msg
34
35DisplayFirstChdir .message
36
37
38
39# Limit WRITE everywhere in the anonymous chroot
40
41<directory *="">
42<limit write="">
43
44DenyAll
45
46</limit>
47</directory>
48<directory incoming="">
49
50# Umask 022 is a good standard umask to prevent new files and dirs
51
52# (second parm) from being group and world writable.
53
54Umask 022 022
55
56<limit mkd="" read="" write="">
57
58DenyAll
59
60</limit>
61<limit stor="">
62
63AllowAll
64
65</limit>
66</directory>
67<directory kepan="">
68
69DisplayFirstChdir info
70
71<limit cwd="" write="">
72
73Allow from 166.111.
74
75</limit>
76<limit dele="" read="" rmd="">
77
78DenyAll
79
80</limit>
81</directory>
82</anonymous>
Linux
FVWM
VIM
由 siyeclover 在 03-03-2003 06:09 发表:
跟你的ftp配置没关系。
是域名逆向解析的问题,修改一个文件就成了。
vi /etc/resolv.conf
删掉关于dns的设置试试
以上
siyeclover
假如我能相信此刻的快乐
我愿祈祷它成为永恒
由 BTworm 在 03-04-2003 17:38 发表:
问题出在"ServerType inetd"这一行.
这一行告诉ProFTPd通过inetd启动.你可以安装proftpd-standalone rpm包,然后把上面那行该为"ServerType standalone".用service proftpd start启动,应该可以解决你的问题.
我就是这么设置的,P75+112M机器,能在小于1秒的时间内连接上.
如果我说得不对,可一定告诉我呀。
由 siyeclover 在 03-04-2003 17:41 发表:
楼上的,晕死.
跟那个没关系,既可以用inetd模式,也可以用standalone.
能够连接上,就说明模式没错,proftpd已经正常启动.
以