proftp - mod_mysql

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

proftp - mod_mysql

Postby GreenRover » 31. March 2005 17:09

Hallo

wie ich geshen habe habt ihr in euer aktuellen xampp version dem Proftpd das mod_mysql installiert.

Nun wüste ich gerne ob dieses auch funktionsbereit ist. Und wenn ja ob mir jemand helfen könnte dieses zu realisieren. Also das der proftpd seiner benutzer aus der sql-db hold. Quota usw benötige ich NICHT. Ich versuche es jetzt schon seit einer Woche. aber mit meienr konfiguration bricht der ftp-server die verbindung schon millisekunden nach den aufbau wieder ab. ka warum.


Würde mich freuen wenn mir jemand eien beispiel konfig mit SQL-db fertig schreiben könnte. DANKE im vorraus.
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby deepsurfer » 31. March 2005 17:57

Vielleicht hilft das
http://www.proftpd.de/forum/viewtopic.p ... ight=mysql



ansonsten auf dem link befindlichen Forum mal weiter schaun.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby GreenRover » 31. March 2005 18:09

Nee leider noch nicht.

Oder kann mir jemand verraten wie ich alle SQL aktionen loggen lassen kann???
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby GreenRover » 01. April 2005 19:11

So ich habe es nun doch selbst hin bekommen!!!!

jedoch habe ich noch ein problem. der LIST befehl dauert imemr 3-5 sec WISO??


debuglog:
Code: Select all
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'PWD' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PWD' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PWD' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'TYPE A' to mod_xfer
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'TYPE A' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'TYPE A' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'TYPE A' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - in dir_check_full(): path = '/bla/test/rufjgf', fullpath = '/www/htdocs/vhost/www/bla/test/rufjgf'.
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - Entering Passive Mode (192,168,254,232,128,83).
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'PASV' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PASV' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PASV' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'LIST' to mod_ls


bis zur vorletzten zeile geht alles fix aber die letzte lässt halt 3-5sec auf sich warten.


paranoid log:
Code: Select all
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'PWD' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PWD' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PWD' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'TYPE A' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'TYPE A' to mod_xfer
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'TYPE A' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'TYPE A' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'TYPE A' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'PASV' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - in dir_check_full(): path = '/bla/test/rufjgf', fullpath = '/www/htdocs/vhost/www/bla/test/rufjgf'.
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - FS: using system stat()
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - Entering Passive Mode (192,168,254,232,128,83).
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching POST_CMD command 'PASV' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PASV' to mod_sql
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching LOG_CMD command 'PASV' to mod_log
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_tls
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching PRE_CMD command 'LIST' to mod_core
LAMPP-Serverlein (192.168.254.200[192.168.254.200]) - dispatching CMD command 'LIST' to mod_ls


config:
Code: Select all
ServerName "LAMPP-FTP-Server"
ServerType standalone
DefaultServer on

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

# 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

# only for the web servers content
DefaultRoot ~

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off

LogFormat default "%h %l %u %t \"%r\" %s %b %D %m"
ExtendedLog /opt/lampp/logs/proftpd.paranoid_log ALL default
SQLLogFile /opt/lampp/logs/proftpd_mysql.log

RootLogin off

SQLAuthTypes            Plaintext
SQLAuthenticate         users*

SQLConnectInfo  projekt@localhost ftpserver ftpserver
SQLUserInfo     users username password "NULL" "NULL" Directory "NULL"
SQLDefaultGID   65534
SQLDefaultUID   1500

# create a user's home directory on demand if it doesn't exist
SQLHomedirOnDemand on

# Update count every time user logs in
# SQLLog PASS updatecount
# SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser

# SQLLog RETR,STOR,ERR_RETR,ERR_STOR transfer
SQLLog RETR,SITE,DELE,STOR,MKD,RMD transfer
SQLNamedQuery transfer INSERT "'%h', '%u', '%D', now(), '%r', '%r', %b" `ftp-transferlog`



wenn ich z.B. 12 RMD befehle habe. fürhrt er diese innerhalb von ms aus aber das LIST dauert ewig. WISO ??
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby deepsurfer » 02. April 2005 07:05

im welchen Modus meldest du dich an

Active / Passive / Normal ????
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby GreenRover » 02. April 2005 09:01

SO wie esaussieht im passiv modus.


protokoll des ftp-clients:

Code: Select all
Connecting to 192.168.254.232, Port 21 (#1)
Connected.  Waiting for response.
220 ProFTPD 1.2.10 Server (LAMPP-FTP-Server) [192.168.254.232]
USER cdrom
331 Password required for cdrom.
PASS xxxxxx
230 User cdrom logged in.
SYST
215 UNIX Type: L8
REST 100
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
PWD
257 "/" is current directory.
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (192,168,254,232,128,7).
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
Transfer done: 483 bytes in 10,025 secs (0,05 k/sec)
CWD /Welcome in Space
250 CWD command successful
PWD
257 "/Welcome in Space" is current directory.
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (192,168,254,232,128,8).
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
Transfer done: 750 bytes in 10,044 secs (0,07 k/sec)
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,254,232,128,9).
RETR 10-AudioTrack 10.mp3
150 Opening BINARY mode data connection for 10-AudioTrack 10.mp3 (6080640 bytes)
226 Transfer complete.
Transfer done: 6.080.640 bytes in 20,038 secs (303,46 k/sec)
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,254,232,128,10).
RETR 09-AudioTrack 09.mp3
150 Opening BINARY mode data connection for 09-AudioTrack 09.mp3 (6901888 bytes)
226 Transfer complete.
Transfer done: 6.901.888 bytes in 11,766 secs (586,60 k/sec)
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,254,232,128,11).
RETR 08-AudioTrack 08.mp3
150 Opening BINARY mode data connection for 08-AudioTrack 08.mp3 (6623360 bytes)
226 Transfer complete.
Transfer done: 6.623.360 bytes in 11,806 secs (561,02 k/sec)
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,254,232,128,12).
RETR 07-AudioTrack 07.mp3
150 Opening BINARY mode data connection for 07-AudioTrack 07.mp3 (6412416 bytes)
226 Transfer complete.
Transfer done: 6.412.416 bytes in 11,656 secs (550,14 k/sec)
TYPE I
200 Type set to I
PASV



Ich hätte es auch gerne wenn der server passiv mode unterstützen würde.
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby deepsurfer » 02. April 2005 10:06

Von PROFTP.DE -FAQ Bereich wrote:Wenn der Login laenger als 10 sekunden dauert, so liegt dieses meist an einem Timeout von einer DNS Aufloesung oder einem Ident Request. Diese kann z.B. durch eine Firewall bedingt sein.



Um die Abfragen abzuschalten, kann man in der ProFTPD folgendes eintragen:



UseReverseDNS off

IdentLookups off




Active Passive:
http://www.proftpd.de/forum/viewtopic.php?p=5642#5642
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby GreenRover » 02. April 2005 10:55

Ich sitze direkt neben dem Server undsprechen ihn per IP an.

also kann es das ja nicht sein.

Und der login dauert auch teilweise recht lange. denke aber mal das es am LIST liegt. Was könnte es noch sein??
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby GreenRover » 02. April 2005 11:30

Und danke für den link. doch leider sind die unterlinks auf der seite defeckt(mon inaktiv) so das ich immer noch nicht weis wieder passiv mode zu konfigurieren ist.
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54

Postby deepsurfer » 02. April 2005 12:27

Der passiv mode ist eine PORTzuweisung, bzw. entspricht einem Zugang über dem Port 1024 , wenn nun deine Firewall oder Router alle Ports über 1024 auch sperrt dann kann kein Passive Mode Zugang stattfinden.

Das Bedeutet, das ein FTP-client zwar über Port 21 sich anmeldet aber die Kommunikation nach der anmeldung über die anderen Ports stattfindet.

Quelle zum nachlesen.
http://slacksite.com/other/ftp.html#passive

Wenn Dir das zu heikel ist kannst du eine PORTrange in der Config für den PassiveMode einstellen.
In der Config einfach
PassivePorts 40000 40010
hinzufügen, wobei es dir überlassen ist welchen bereich du freigibst

Quelle:
http://forums.proftpd.org/phpBB2/viewto ... ?p=762#762


Aber laut deinem Protokoll wird ein Passiv Mod annerkannt, sonst würde generell keine Verbindung aufegbaut.


Thematik LIST befehl:
In dem englischen Forum von proftp wird im zusammenhang mit dem LIST befehl auch eine falsche Konfiguration der Firewall und/oder Routers angesprochen.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby GreenRover » 02. April 2005 13:18

THX den befehl für den portrange habe ich gesucht.

und der server läuft nun astrein. Es der Hostnamelockup.

DA auf der selben maschieen soll noch ein DNS-server laufen an dem ich nun beisitze. ( läuft momentan noch nicht ).
GreenRover
 
Posts: 17
Joined: 31. March 2005 16:54


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 32 guests