|
用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
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
AllowRetrieveRestart on
AllowOverwrite on
AllowStoreRestart on
</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.
<Anonymous ~ftp>
AnonRequirePassword on
User ftp
Group nogroup
UserAlias pub ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10 "Sorry, max %m users -- try again later"
MaxClientsPerHost 2 "Sorry, only 2 connections per ip"
RateReadBPS 500000
RateWriteBPS 750000
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
<Limit READ WRITE MKD>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
<Directory kepan>
DisplayFirstChdir info
<Limit WRITE CWD>
Allow from 166.111.
</Limit>
<Limit READ RMD DELE >
DenyAll
</Limit>
</Directory>
</Anonymous> |
|