- 论坛徽章:
- 0
|
贴出配置和日志,求真相。
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. |
|