歡迎您光臨本站 註冊首頁

求助:proftp登陸失敗的日誌在哪裡呀?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

求助:proftp登陸失敗的日誌在哪裡呀?

proftp.conf配置如下:
ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on

timesGMT off
# 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 that the server normally runs at.
User                            nobody
Group                           nobody
TransferLog                     /usr/local/proftp/var/proftpd/xferlog
LogFormat         auth    "%v [%P] %h %t \"%r\" %s"
LogFormat         write   "%h %l %u %t \"%r\" %s %b"
# Logging file/dir access
ExtendedLog              /usr/local/proftp/var/proftpd/access.log WRITE,READ write

# Record all logins
ExtendedLog              /usr/local/proftp/var/proftpd/auth.log AUTH auth
   
# Normally, we want files to be overwriteable.
<Directory /*>
  AllowOverwrite                on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
  AnonRequirePassword           on
  User                          ftp
  Group                         ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayFirstChdir             .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>

</Anonymous>

客戶端執行過程:
# ftp 172.18.250.113
Connected to 172.18.250.113.
220 ProFTPD 1.2.4 Server (ProFTPD Default Installation)
500 AUTH not understood.
500 AUTH not understood.
KERBEROS_V4 rejected as an authentication type
Name (172.18.250.113:root): ftp
331 Password required for ftp.
Password:
530 Login incorrect.50.113


產生的日誌文件如下:
/usr/local/proftp/var/proftpd/xferlog//記錄文件傳輸的信息
/usr/local/proftp/var/proftpd/access.log
ProFTPD Default Installation 172.18.250.171 "USER ftp" 331
ProFTPD Default Installation 172.18.250.171 "PASS (hidden)" 230
ProFTPD Default Installation 172.18.250.171 "USER ftp" 331
ProFTPD Default Installation 172.18.250.171 "PASS (hidden)" 530
ProFTPD Default Installation 172.18.250.171 "USER ftp" 331
ProFTPD Default Installation 172.18.250.171 "PASS (hidden)" 530
/usr/local/proftp/var/proftpd/auth.log
172.18.250.171 UNKNOWN ftp "RETR wget-log" 226 3944
都沒有ftp連接認證失敗的記錄信息,不知道這些信息記錄在哪裡或者還需要配置什麼?
《解決方案》

你這個是你登陸的時候客戶端開了pasv模式,關掉就可以了!

[火星人 ] 求助:proftp登陸失敗的日誌在哪裡呀?已經有795次圍觀

http://coctec.com/docs/service/show-post-37466.html