LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 538|回复: 4

关于proftpd的问题

[复制链接]
发表于 2005-10-20 10:08:28 | 显示全部楼层 |阅读模式
我的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>
希望朋友们能协助我解决这个问题
发表于 2005-10-20 10:39:39 | 显示全部楼层
匿名用户有没有相应的目录呀.或者是防火墙的原因
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-20 11:15:14 | 显示全部楼层
匿名用户是有操作目录的,在内网的使用都是正常的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-20 12:27:41 | 显示全部楼层

我的proftpd怎么了?

我在另一个pc机(windows)上搭了一个Serv-u的ftp服务。
它也不支持被动模式。
其它关于环境没有任何变化,但这个ftp使用正常的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-21 11:11:06 | 显示全部楼层
问题解决了,增加了 被动模式和允许外部地址
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表