LinuxSir.cn,穿越时空的Linuxsir!

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

好久没来了,关于FTP服务器的几个问题请教一下大家

[复制链接]
发表于 2005-10-19 14:18:37 | 显示全部楼层 |阅读模式
好久没来了,看到linuxsir还是感到很亲切,感觉速度比以前快多了,高手也多多了。
我的一台redhat 7.3的机器,用来做备份和FTP服务器(proftpd 1.2.10)的,前几天突然出了问题,登陆变得很慢,本来用IE登陆1秒钟就可以打开,后来却需要10来秒钟,反复查看不知道哪里出问题了,用过chkrootkit也查不出问题、关掉iptables也无效。我本来以为会不会网管限制了我这台机器的速度,因为ssh登陆同时也变得很慢,于是把这台机器用另外一台linux机器进行iptables包转发,果然FTP速度变得飞快,当然这只能在同一个网段内才能访问。在向网管询问后他说并没有限制,而且换了ip之后确实速度也还是不行。无奈之下我决定把proftpd换成vsftpd,换了之后速度飞快,但ssh登陆仍然很慢。。。至今还是不明白什么原因,十分郁闷!
另外还有一个FTP的问题,还是这个FTP,不论是以前用proftpd还是现在用vsftpd,都有一个奇怪的现象,就是用xp和2003上传带子目录的文件夹都要出错,显示:打开FTP服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹。但实际上传输文件正常,就是要点击很多次确定。但如果用win98和win2k就没有这个问题。
 楼主| 发表于 2005-10-19 14:23:36 | 显示全部楼层
另外还有个问题忘了说,原来用proftpd不存在的,现在用vsftpd居然log里面不能正常显示中文,在这里看了不少帖子也找不到相关的问题和解决办法。。。
回复 支持 反对

使用道具 举报

发表于 2005-10-20 10:07:12 | 显示全部楼层
我的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>
希望朋友们能协助我解决这个问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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