[gelöst] loglevel vsftp

schmatke

Mitglied
Mitglied seit
25 Jul 2006
Beiträge
631
Punkte für Reaktionen
0
Punkte
0
Hallo. Ich habe mich seit längerer Zeit mal wieder mit freetz beschäftigt.
Spontan habe ich keine Antwort auf folgende Frage gefunden. Kann ich das Loglevel von vsftp erhöhen, bzw. wie?
Der Standard ist nicht besonders aussagekräftig, das kenne ich aus der Vergangenheit anders.
 
Zuletzt bearbeitet:
CONNECT, UPLOAD, DOWNLOAD, DELETE... ist mir eigentlich zu wenig. DISCONNECT, LIST z.B. kann ich nicht sehen. Wie gesagt, ich kenne das von "früher" her anders.
Beispiel früher:
Code:
Fri May 25 07:26:11 2012 [pid 4327] FTP command: Client "217.82.214.220", "USER ftp"
Fri May 25 07:26:11 2012 [pid 4327] [ftp] FTP response: Client "217.82.214.220", "331 Please specify the password."
Fri May 25 07:26:11 2012 [pid 4327] [ftp] FTP command: Client "217.82.214.220", "PASS <password>"
Fri May 25 07:26:11 2012 [pid 4326] [ftp] OK LOGIN: Client "217.82.214.220"
Fri May 25 07:26:11 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "230 Login successful."
Fri May 25 07:26:11 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "SYST"
Fri May 25 07:26:11 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "215 UNIX Type: L8"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "FEAT"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "211-Features:"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " EPRT??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " EPSV??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " MDTM??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " PASV??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " REST STREAM??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " SIZE??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " TVFS??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", " UTF8??"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "211 End"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "OPTS UTF8 ON"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Always in UTF8 mode."
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PWD"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "257 "/""
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PASV"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "227 Entering Passive Mode (192,168,178,2,9,92)."
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "LIST -a"
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "150 Here comes the directory listing."
Fri May 25 07:26:12 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "226 Directory send OK."
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "CWD Image"
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "250 Directory successfully changed."
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PWD"
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "257 "/Image""
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PASV"
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "227 Entering Passive Mode (192,168,178,2,151,99)."
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "LIST -a"
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "150 Here comes the directory listing."
Fri May 25 07:26:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "226 Directory send OK."
Fri May 25 07:26:53 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE I"
Fri May 25 07:26:53 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to Binary mode."
Fri May 25 07:27:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PWD"
Fri May 25 07:27:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "257 "/Image""
Fri May 25 07:27:53 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PWD"
Fri May 25 07:27:53 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "257 "/Image""
Fri May 25 07:28:22 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:28:22 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:28:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PASV"
Fri May 25 07:28:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "227 Entering Passive Mode (192,168,178,2,47,24)."
Fri May 25 07:28:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "LIST -a"
Fri May 25 07:28:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "150 Here comes the directory listing."
Fri May 25 07:28:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "226 Directory send OK."
Fri May 25 07:28:54 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:28:54 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:29:24 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE I"
Fri May 25 07:29:24 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to Binary mode."
Fri May 25 07:29:54 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:29:54 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PASV"
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "227 Entering Passive Mode (192,168,178,2,36,82)."
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "LIST -a"
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "150 Here comes the directory listing."
Fri May 25 07:30:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "226 Directory send OK."
Fri May 25 07:30:54 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:30:54 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:31:24 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PWD"
Fri May 25 07:31:24 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "257 "/Image""
Fri May 25 07:31:54 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:31:54 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:32:23 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "TYPE A"
Fri May 25 07:32:23 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "200 Switching to ASCII mode."
Fri May 25 07:32:24 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "PASV"
Fri May 25 07:32:24 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "227 Entering Passive Mode (192,168,178,2,13,74)."
Fri May 25 07:32:24 2012 [pid 4328] [ftp] FTP command: Client "217.82.214.220", "LIST -a"
Fri May 25 07:32:24 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "150 Here comes the directory listing."
Fri May 25 07:32:24 2012 [pid 4328] [ftp] FTP response: Client "217.82.214.220", "226 Directory send OK."

Beispiel jetzt:
Code:
Sun Sep 23 10:47:51 2012 [pid 6014] [ftp] OK LOGIN: Client "192.168.178.141"
Sun Sep 23 10:48:04 2012 [pid 6016] [ftp] FAIL RMDIR: Client "192.168.178.141", "/19092012337.jpg"
Sun Sep 23 10:48:29 2012 [pid 6016] [ftp] OK DELETE: Client "192.168.178.141", "/19092012337.jpg"

Ok. DISCONNECT gab es wohl noch nie. (Warum eigentlich nicht?) Da bin ich wohl ein bisschen beruflich verwöhnt. :rolleyes:
 
Zuletzt bearbeitet:
Beispiel früher:
Da hat sich nichts geändert. Das geht jetzt auch so. Hast Du in der vsftpd.conf, "log_ftp_protocol" auf YES?
Code:
log_ftp_protocol
    When enabled, all FTP requests and responses are logged, providing the option xferlog_std_format is not enabled. Useful for debugging.
    Default: NO
 
Das wars. Danke! :)
Bleibt die Frage, warum gibt es kein DISCONNECT?
Ich bin das von anderen FTP-Servern gewohnt.
Der Admin will doch auch wissen, wann sich ein Gast verabschiedet.
(OK, ich weiß, hat nix mit freetz zu tun...)
 
Zuletzt bearbeitet:
Du hast Recht. Folgendes Events gibt es:
Code:
enum EVSFLogEntryType
{
  kVSFLogEntryNull = 1,
  kVSFLogEntryDownload,
  kVSFLogEntryUpload,
  kVSFLogEntryMkdir,
  kVSFLogEntryLogin,
  kVSFLogEntryFTPInput,
  kVSFLogEntryFTPOutput,
  kVSFLogEntryConnection,
  kVSFLogEntryDelete,
  kVSFLogEntryRename,
  kVSFLogEntryRmdir,
  kVSFLogEntryChmod,
  kVSFLogEntryDebug,
};

Ich habe keine Idee warum kein Disconnect, Quit oder Exit dabei ist.

Gruß
Oliver
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.