ispCP - Board - Support
Probleme mit ProFTPD - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+--- Thread: Probleme mit ProFTPD (/thread-6314.html)

Pages: 1 2


Probleme mit ProFTPD - DaSilva - 04-05-2009 10:31 PM

In seltenen Abständen (aber oft genug!) kriegen einzelne Benutzer keine Verbindung zum FTP-Server.
Im Log habe ich diese Fehlermeldung gefunden:

Quote:/var/log/daemon.log.0:Apr 4 15:27:02 s1 proftpd[25262]: s1.server.net (12.33.56.78[12.33.56.78]) - PAM(ftpaccount@domain.de): User not known to the underlying authentication module.

Die proftpd.conf sieht so aus:

Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2001-2006 by moleSoftware GmbH
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version        SVN: $Id$
# @link            http://isp-control.net
# @author        ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
# Includes DSO modules (this is mandatory in proftpd 1.3)
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                    off

ServerName                 "s1.server.net"
ServerType                 standalone
DeferWelcome               off

MultilineRFC2228           on
DefaultServer              on
ShowSymlinks               on

AllowOverwrite             on
UseReverseDNS              off
IdentLookups               off
AllowStoreRestart          on
AllowForeignAddress        on

LogFormat                  traff "%b %u"

TimeoutLogin               120
TimeoutNoTransfer          600
TimeoutStalled             600
TimeoutIdle                1200

DisplayLogin               welcome.msg
DisplayFirstChdir          message

ListOptions                "-l"
#LsDefaultOptions           "-l"

DenyFilter                 \*.*/

DefaultRoot                ~

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd         off

# Port 21 is the standard FTP port.
Port                       21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
#PassivePorts               49152 65534

# 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                      nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask                    022  022
  # Normally, we want files to be overwriteable.
  AllowOverwrite           on
  HideNoAccess             on
</Directory>

<Limit ALL>
  IgnoreHidden             on
</Limit>

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile               off

<Global>
  RootLogin                off
  TransferLog              /var/log/proftpd/xferlog
  ExtendedLog              /var/log/proftpd/ftp_traff.log read,write traff
  PathDenyFilter           "\.quota$"
</Global>

#
# SSL via TLS
#
#<IfModule mod_tls.c>
#  TLSEngine                off                           # on for use of TLS
#  TLSLog                   /var/log/proftpd/ftp_ssl.log  # where to log to
#  TLSProtocol              SSLv23                        # SSLv23 or TLSv1
#  TLSOptions               NoCertRequest                 # either to request the certificate or not
#  TLSRSACertificateFile    /etc/proftpd/ssl.crt          # SSL certfile
#  TLSRSACertificateKeyFile /etc/proftpd/ssl.key          # SSL keyfile
#  TLSVerifyClient          off                           # client verification
#</IfModule>

#
# ISPCP Quota management;
#
<IfModule mod_quotatab.c>
  QuotaEngine              on
  QuotaShowQuotas          on
  QuotaDisplayUnits        Mb

  SQLNamedQuery            get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"
  SQLNamedQuery            get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
  SQLNamedQuery            update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" quotatallies
  SQLNamedQuery            insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies

  QuotaLock                /var/run/proftpd/tally.lock
  QuotaLimitTable          sql:/get-quota-limit
  QuotaTallyTable          sql:/get-quota-tally/update-quota-tally/insert-quota-tally
</IfModule>

<IfModule mod_ratio.c>
  Ratios                   on
</IfModule>

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
  DelayEngine              on
</IfModule>

<IfModule mod_ctrls.c>
  ControlsEngine           on
  ControlsMaxClients       2
  ControlsLog              /var/log/proftpd/controls.log
  ControlsInterval         5
  ControlsSocket           /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
  AdminControlsEngine      on
</IfModule>

# ispCP SQL Managment
SQLBackend                 mysql
SQLAuthTypes               Crypt
SQLAuthenticate            on
SQLConnectInfo             ispcp@localhost vftp password
SQLUserInfo                ftp_users userid passwd uid gid homedir shell
SQLGroupInfo               ftp_group groupname gid members
SQLMinUserUID              2000
SQLMinUserGID              2000

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User                   ftp
#   Group                  nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias              anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser            on ftp
#   DirFakeGroup           on ftp
#
#   RequireValidShell      off
#
#   # 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
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
#
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask              022  022
#   #   <Limit READ WRITE>
#   #     DenyAll
#   #   </Limit>
#   #   <Limit STOR>
#   #     AllowAll
#   #   </Limit>
#   # </Directory>
#
# </Anonymous>
Include /etc/proftpd/ispcp/*

Was kann das Problem sein und wie kann ich es beheben?
Danke.


RE: Probleme mit ProFTPD - Lucan - 04-06-2009 01:00 AM

Welche ispCP Version? welches OS etc etc. so kann dir keiner helfen.


RE: Probleme mit ProFTPD - BeNe - 04-06-2009 02:52 AM

Warum versuchtst du gehen PAM zu authentifizieren ?
Quote:PAM(ftpaccount@domain.de): User not known to the underlying authentication module.
Lass es mal im DEBUG Modus laufen. Kann sein das es ein Timeout gibt bei der Abfrage zum MySQL Server für den Benutzer und er danach zu PAM dem letzen Module versucht und dann die authentifizierung beendet, da kein Treffer. Weil es kommt ja antscheinend nicht immer vor...

Greez BeNe


RE: Probleme mit ProFTPD - DaSilva - 04-06-2009 06:37 AM

Ich nutze ispCP 1.0.0 mit Debian Etch AMD64.

Wie kann ich ProFTPD als Dämon im Debug laufen lassen? Habe nur "proftpd -nd5" hier im Forum gefunden, dann zeigt er mir aber alles direkt an und ich kann ihn nicht längere Zeit laufen lassen ohne den PC herunterzufahren.


RE: Probleme mit ProFTPD - BeNe - 04-06-2009 07:00 AM

Quote:Habe nur "proftpd -nd5" hier im Forum gefunden, dann zeigt er mir aber alles direkt an und ich kann ihn nicht längere Zeit laufen lassen ohne den PC herunterzufahren.
Der soll auch nicht ewig damit laufen, gibt eine Datenflut die keiner braucht.
Wenn dann wenn es mehr oder weniger vorraussehbar ist oder Du es selber testen kannst.

Hast Du einen höheren Load oder mehr Query´s auf deinem MySQL wenn das Problem auftritt ?

Greez BeNe


RE: Probleme mit ProFTPD - DaSilva - 04-07-2009 01:22 AM

Hier ein Logfileausschnitt (ist nach schon 24 Stunden 14MB groß geworden!):

Quote:Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getpwnam" to module mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getpwnam" to module mod_ldap
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getpwnam" to module mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): stashed module 'mod_sql.c' for user 'kunde@kundendomain.de' in the authcache
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]):
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): Config for s1.domain.net:
...
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setpwent" to module mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setpwent" to module mod_ldap
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setpwent" to module mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setpwent" to module mod_auth_file
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setpwent" to module mod_auth_unix
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setgrent" to module mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setgrent" to module mod_ldap
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setgrent" to module mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setgrent" to module mod_auth_file
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "setgrent" to module mod_auth_unix
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getpwent" to module mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getpwent" to module mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getgrent" to module mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "getgrent" to module mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): Preparing to chroot to directory '/var/www/virtual/kundendomain.de'
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): Environment successfully chroot()ed.
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): in dir_check_full(): path = '/', fullpath = '/var/www/virtual/kundendomain.de/'.
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_ifsession
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_radius
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_quotatab
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_tls
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_cap
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_readme
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_delay
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): mod_delay/0.5: selecting median interval from 256 values
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): mod_delay/0.5: delaying for 4998 usecs
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_log
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_ls
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching POST_CMD command 'PASS (hidden)' to mod_auth
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): unable to display DisplayLogin file 'welcome.msg': No such file or directory
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching LOG_CMD command 'PASS (hidden)' to mod_sql
Apr 06 13:53:26 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching LOG_CMD command 'PASS (hidden)' to mod_log
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): FTP no transfer timeout, disconnected
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_radius
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_ldap
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_sql
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_auth_file
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_auth_unix
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): emptying authcache
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_radius
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_ldap
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_sql
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_auth_file
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_auth_unix
Apr 06 14:03:14 s1 proftpd[437] s1.domain.net (12.34.56.78[12.34.56.78]): FTP session closed.
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): FTP no transfer timeout, disconnected
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_radius
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_ldap
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_sql
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_auth_file
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endpwent" to module mod_auth_unix
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): emptying authcache
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_radius
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_ldap
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_sql
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_auth_file
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): dispatching auth request "endgrent" to module mod_auth_unix
Apr 06 14:03:23 s1 proftpd[444] s1.domain.net (12.34.56.78[12.34.56.78]): FTP session closed.

Was nun?


RE: Probleme mit ProFTPD - fulltilt - 04-07-2009 10:07 AM

Habe vorhin auf einem Produktivsystem von RC5 auf stable updateted und habe hier auch Megaprobleme mit proftpd ...
Login dauert sehr lange beim restart oder start von proftpd erhalte ich hunderte Meldungen mit:
deferring resolution of path
zu allen directories der Stammverzeichnisse
in /etc/proftpd/ispcp
fehlen auch fast die hälfte von den confs

syslog:
FTP session requested from unknown class
User not known to the underlying authentication module

hat jemand eine Lösung bzw. eine funktionierende config für proftpd?
Ich musste nun die alte RC5 configs von proftpd in der stable einsetzen ...


RE: Probleme mit ProFTPD - fulltilt - 04-07-2009 09:05 PM

(04-07-2009 10:07 AM)fulltilt Wrote:  zu allen directories der Stammverzeichnisse
in /etc/proftpd/ispcp
fehlen auch fast die hälfte von den confs

noch etwas:
in der Datenbank sind alle FTP Passwörter verschlüsselt, irgendwie hat hier nach dem Update das anlegen der User confs in /etc/proftpd/ispcp nicht ganz geklappt, im ispcp wird unter Debugger alles auf OK angezeigt 0 offene Anfragen.
Wie gesagt es fehlen ungefähr 70 proftpd confs von den Usern.
Kann momentan also nur die alte proftpd conf von rc5 in 1.0 verwenden.


RE: Probleme mit ProFTPD - DaSilva - 04-09-2009 07:08 AM

Das Problem besteht weiterhin.
Ich würde mich über Hilfe dazu sehr freuen! Smile


RE: Probleme mit ProFTPD - BeNe - 04-09-2009 08:21 AM

Wegen dem Geschwindigkeitsproblem, stell mal sicher das folgendes in deiner Config steht:
Code:
UseReverseDNS off
IdentLookups off
DelayEngine off

Wegen dem rest, was für Module sind den alles aktiviert bei euch?
Unnötiges bitte raus.

Greez BeNe