|
|
我的proftpd只做21号端口的映射时,只能登录不能传输数据。
但目前我并没有资源将其他端口映射给他用ftp登录成功后,提示
425 Unable to build data connection: Connection refused
我怀疑是因为支持了被动传输模式的原因。
---------------------------------------------------------------------
我的配置文件如下:
# 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 "Map Editor FTP"
ServerType standalone
DefaultServer on
AllowRetrieveRestart on
ServerIdent off
RootLogin on
IdentLookups off
UseReverseDNS off
TimeoutIdle 600
TimeoutLogin 30
TimeoutNoTransfer 600
TimeoutStalled 36000
# 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 /var/ftp
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~mapmgr>
User mapmgr
Group ftp
AnonRequirePassword on
MaxClients 1000
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE >
#Deny from all
AllowAll
</Limit>
<Directory incoming>
<Limit READ WRITE DIRS STOR CWD CDUP>
AllowAll
</Limit>
</Directory>
</Anonymous>
<Anonymous ~ftp1>
User ftp1
Group ftp
AnonRequirePassword off
MaxClients 1000
DisplayLogin welcome.msg
DisplayFirstChdir .message
UserAlias anonymous ftp1
<Limit WRITE >
Deny from all
</Limit>
<Directory incoming>
<Limit READ DIRS STOR CWD CDUP>
AllowAll
</Limit>
</Directory>
</Anonymous>
希望朋友们能协助我解决这个问题 |
|