Titel: Ständig "Connection Lost" Beitrag von: SeaStorm am 28. August 2006, 22:34:24 Hi
Ich habe mir proftpd-mysql installiert und einen der webadmintools dazu. Dessen Config verwende ich hier auch. Mien problem ist, das ich ständig Connection Lost bekomme. In den Logs finde ich nix sinnvolles, deshalb wende ich mich nun an die Profis ;) Meine Config: Code: ServerName "Crappy little FTP Server" ServerType standalone ServerIdent on "Servers identifying string" DeferWelcome on DefaultServer on DisplayLogin .welcome # Textfile to display on login DisplayConnect .connect # Textfile to display on connection DisplayFirstChdir .firstchdir # Textfile to display on first changedir UseReverseDNS off IdentLookups off Port 21 Umask 022 MaxInstances 15 MaxClientsPerHost 30 "Only %m connections per host allowed" MaxClients 10 "Only %m total simultanious logins allowed" MaxHostsPerUser 10 User nobody Group nogroup ScoreboardFile /var/log/scoreboard # 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" # Define log-files to use TransferLog /var/log/proftpd.xferlog ExtendedLog /var/log/proftpd.access_log WRITE,READ write ExtendedLog /var/log/proftpd.auth_log AUTH auth ExtendedLog /var/log/proftpd.paranoid_log ALL default SQLLogFile /var/log/proftpd.mysql # Set up authentication via SQL # =========== AuthOrder mod_sql.c SQLAuthTypes Backend SQLConnectInfo proftpd_admin@localhost proftpd_db trallala SQLUserInfo usertable userid passwd uid gid homedir shell SQLGroupInfo grouptable groupname gid members SQLUserWhereClause "disabled=0 and (NOW()<=expiration or expiration=-1 or expiration=0)" # Log the user logging in SQLLog PASS counter SQLNamedQuery counter UPDATE "lastlogin=now(), count=count+1 WHERE userid='%u'" usertable # logout log SQLLog EXIT time_logout SQLNamedQuery time_logout UPDATE "lastlogout=now() WHERE userid='%u'" usertable # display last login time when PASS command is given SQLNamedQuery login_time SELECT "lastlogin from usertable where userid='%u'" SQLShowInfo PASS "230" "Last login was: %{login_time}" # xfer Log in mysql SQLLog RETR,STOR transfer1 SQLNamedQuery transfer1 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'c', NULL" xfer_stat SQLLOG ERR_RETR,ERR_STOR transfer2 SQLNamedQuery transfer2 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'i', NULL" xfer_stat AllowStoreRestart on AllowRetrieveRestart on RequireValidShell off PathDenyFilter "\\.ftp)|\\.ht)[a-z]+$" DefaultRoot ~ DenyFilter \*.*/ #<Directory /var/www/*> # AllowOverwrite off # HideNoAccess off # <Limit READ> # AllowAll # </Limit> # # <Limit WRITE> # DenyGroup !admins # </Limit> #</Directory> <Directory /var/www/*> AllowOverwrite on HideNoAccess on <Limit READ> DenyGroup !admins </Limit> <Limit STOR MKD> AllowAll </Limit> </Directory> <Directory /home/sold3/> AllowOverwrite on HideNoAccess on <Limit READ> DenyGroup !users !admins </Limit> <Limit STOR MKD> AllowAll </Limit> </Directory> Ich hoffe ihr könnt mir da weiterhelfen :] Gruss Sea Titel: Re: Ständig "Connection Lost" Beitrag von: VolGas am 29. August 2006, 18:22:47 Hi!
an welcher Stelle bekommst Du jeweils Dein "Connection Lost"? Deine proftpd.conf sieht auf den ersten Blick eigentlich ganz ordentlich aus, doch mit "SQLAuthTypes Backend" wäre ich allerdings sehr vorsichtig. Ein Tipp kann ich dir gleich geben: der ProFTPD verabschiedet sich kang- und sanglos bei einem SQL-Fehler, also überprüfe zuerst Deine SQL-Queries. Du hast ja schon "SQLLogFile" in Deiner .conf eingesetzt, siehe einmal in diesem Logfile, ob alles mit rechten Dingen vor sich geht. (das Logfile am besten vorher einmal leeren!) mfg. VolGas Titel: Re: Ständig "Connection Lost" Beitrag von: SeaStorm am 29. August 2006, 19:32:08 was ist denn dieses Backend überhaupt ? ( Habe die Conf vom Hersteller des Admintools übernommen )
Titel: Re: Ständig "Connection Lost" Beitrag von: VolGas am 29. August 2006, 21:16:46 Dies ist eine datenbankspezifische Lösung.
Mag funktionieren, aber beim Update von mySQL < 4.1 oder bei sich vom Server unterschiedlichen Clientversionen passt dann gar nichts mehr. IMHO ist die Option "Plaintext" -zumindest für eine Testphase- die Beste. Näheres sie bei den ->Direktiven (http://www.proftpd.de/Direktiven.54.0.html#145) auf Stonki's Website - diese Seite kann zur wahren "Offenbarung" werden... ;) mfg. VolGas |