免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3886 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] proftpd问题(上传ok,下载出现网络中断) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-20 11:26 |只看该作者 |倒序浏览
贴出配置和日志,求真相。
proftpd.conf
************************
# 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 "My TestFTP"
ServerType standalone
DefaultServer On
ServerIdent off
# Display message
DisplayLogin /usr/local/proftpd/etc/ftplogin.msg
#DisplayConnect /net/messages/ftp.pre
#DisplayFirstChdir index.txt
# Port 21 is the standard FTP port.
Port 21
# Limit users to login by username
<Limit LOGIN>
AllowAll
</Limit>
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Limit login attempts
#
MaxLoginAttempts 5
# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutLogin 3000
TimeoutIdle 3000
TimeoutNoTransfer 3000
TimeoutStalled 3600
# Set the user and group under which the server will run.
User ftpuser
Group ftpgroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Users needs a valid shell
#
RequireValidShell off
# Performance: skip DNS resolution when we process the logs...
UseReverseDNS off
# Turn off Ident lookups
IdentLookups off
# Restart session support
#
AllowStoreRestart on
AllowRetrieveRestart on

TimesGMT off
Include /usr/local/proftpd/etc/proftpd_mysql.conf

# Logging options
# Debug Level
# emerg, alert, crit (empfohlen), error, warn. notice, info, debug
#
SyslogLevel emerg
SystemLog /var/log/proftpd.system.log
TransferLog /var/log/proftpd.xferlog
# Some logging formats
#
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
# Log file/dir access
# ExtendedLog /var/log/proftpd.access_log WRITE,READ write
# Record all logins
ExtendedLog /var/log/proftpd.auth_log AUTH auth
# Paranoia logging level....
ExtendedLog /var/log/proftpd.paranoid_log ALL default
# 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
# Maximum clients with message
#MaxClients 2 "Sorry, max %m users -- try again later"
MaxClientsPerHost 2 "Sorry, only 2 session for one host"
# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite on
</Directory>
RootLogin off
RequireValidShell off
# alphanumeric characters for uploads (and not shell code...)
#PathAllowFilter "^[a-zA-Z0-9_.-]()'+$"
#PathAllowFilter "^[a-zA-Z0-9 _.-]()'+$"
# We don't want .ftpaccess or .htaccess files to be uploaded
#PathDenyFilter "(\.ftp)|(\.ht)[a-z]+$"
#pathDenyFilter "\.ftp[a-z]+$"
# Do not allow to pass printf-Formats (security! see documentation!):
#AllowFilter "^[a-zA-Z0-9@~ /,_.-]*$"
#DenyFilter "%"


************************

中断时产生的日志,截取

Jul 18 17:05:32 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): FTP session opened.
Jul 18 17:05:32 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): mod_delay/0.5: delaying for 6225 usecs
Jul 18 17:05:32 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): USER webftp: Login successful.
Jul 18 17:05:32 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): Preparing to chroot to directory '/usr/local/webftp'
Jul 18 17:08:28 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): notice: user webftp: aborting transfer: Data connection closed.
Jul 18 17:08:28 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): notice: user webftp: aborting transfer: Data connection closed.
Jul 18 17:11:04 chw.com proftpd[810] chw.com (192.168.0.15[192.168.0.15]): FTP session closed.
Jul 18 17:11:05 chw.com proftpd[1118] chw.com: Failed binding to 0.0.0.0, port 21: Address already in use
Jul 18 17:11:05 chw.com proftpd[1118] chw.com: Check the ServerType directive to ensure you are configured correctly.
Jul 18 17:12:06 chw.com proftpd[1244] chw.com (192.168.0.15[192.168.0.15]): FTP session opened.
Jul 18 17:12:06 chw.com proftpd[1244] chw.com (192.168.0.15[192.168.0.15]): mod_delay/0.5: delaying for 106 usecs
Jul 18 17:12:06 chw.com proftpd[1244] chw.com (192.168.0.15[192.168.0.15]): USER webftp: Login successful.
Jul 18 17:12:06 chw.com proftpd[1244] chw.com (192.168.0.15[192.168.0.15]): Preparing to chroot to directory '/usr/local/webftp'
Jul 18 17:15:30 chw.com proftpd[1244] chw.com (192.168.0.15[192.168.0.15]): FTP session closed.

论坛徽章:
0
2 [报告]
发表于 2011-07-20 11:31 |只看该作者
问题补充,中断出现后,网络就断了,ssh连不上,是不是网卡的问题,网卡是板载卡,流量大的时候是不是有问题,但是上传却没有任何问题!!在线等!求大侠拔剑!

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
3 [报告]
发表于 2011-07-20 21:04 |只看该作者
看日志好像是ftp重启了。systat -vm 、 top 看一下状态。

论坛徽章:
0
4 [报告]
发表于 2011-07-21 16:26 |只看该作者
换个了网卡,测试ok!看来是网卡的问题,但具体原因还是没明白!

论坛徽章:
0
5 [报告]
发表于 2011-08-05 15:23 |只看该作者
实践出真理啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP