Bonjour à tous,
J'ai beau chercher sur le net dans toutes les langues, lire la doc qu'il faut, je n'arrive pas à me dépatouiller de ces erreurs.
J'ai monté un serveur FTP chez moi sous une Debian Lenny avec vsFTPd, que j'ai configuré comme ceci :
Code vsftpd.conf : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 # Run standalone listen=YES # Disallow anonymous FTP anonymous_enable=NO anon_upload_enable=NO anon_mkdir_write_enable=NO anon_other_write_enable=NO # Allow local users to log in local_enable=YES chroot_local_user=YES # Disallow write commands write_enable=NO dirmessage_enable=NO xferlog_enable=YES log_ftp_protocol=YES async_abor_enable=NO ascii_upload_enable=NO ascii_download_enable=NO pasv_max_port=2000 pasv_min_port=2050 ftpd_banner=Bienvenue chez Flo, retire tes godasses max_clients=20 max_per_ip=3 # Virtual users guest_enable=YES guest_username=virtual user_config_dir=/etc/vsftpd/users # # Debian customization # # Some of vsftpd's settings don't fit the Debian filesystem layout by # default. These settings are more Debian-friendly. # # This option should be the name of a directory which is empty. Also, the # directory should not be writable by the ftp user. This directory is used # as a secure chroot() jail at times vsftpd does not require filesystem # access. secure_chroot_dir=/var/run/vsftpd # # This string is the name of the PAM service vsftpd will use. pam_service_name=vsftpd # # This option specifies the location of the RSA certificate to use for SSL # encrypted connections. rsa_cert_file=/etc/ssl/certs/vsftpd.pem
Enfin, j'ai mis en place un système de DNS dynamique (dyndns.com).
Je suis derrière une Livebox, j'ai forwardé les ports 20, 21 et 2000 à 2050 vers ma machine.
Chez moi ça marche ®, mais pas chez les autres.
Voici un log de quand je me connecte :
et en voici un lorsque ça ne fonctionne pas :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 Tue Dec 2 00:04:44 2008 [pid 32753] CONNECT: Client "90.3.x.x" Tue Dec 2 00:04:44 2008 [pid 32753] FTP response: Client "90.3.x.x", "220 Bienvenue chez Flo, retire tes godasses" Tue Dec 2 00:04:44 2008 [pid 32753] FTP command: Client "90.3.x.x", "USER anonymous" Tue Dec 2 00:04:44 2008 [pid 32753] [anonymous] FTP response: Client "90.3.x.x", "331 Please specify the password." Tue Dec 2 00:04:44 2008 [pid 32753] [anonymous] FTP command: Client "90.3.x.x", "PASS <password>" Tue Dec 2 00:04:44 2008 [pid 32752] [anonymous] FAIL LOGIN: Client "90.3.x.x" Tue Dec 2 00:04:45 2008 [pid 32753] [anonymous] FTP response: Client "90.3.x.x", "530 Login incorrect." Tue Dec 2 00:04:58 2008 [pid 32753] FTP command: Client "90.3.x.x", "USER username" Tue Dec 2 00:04:58 2008 [pid 32753] [username] FTP response: Client "90.3.x.x", "331 Please specify the password." Tue Dec 2 00:04:58 2008 [pid 32753] [username] FTP command: Client "90.3.x.x", "PASS <password>" Tue Dec 2 00:04:58 2008 [pid 32752] [username] OK LOGIN: Client "90.3.x.x" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "230 Login successful." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "SYST" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "215 UNIX Type: L8" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "PWD" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "257 "/"" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "TYPE I" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "200 Switching to Binary mode." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "PASV" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "227 Entering Passive Mode (192,168,1,15,175,180)" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "SIZE /" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "550 Could not get file size." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "MDTM /" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "550 Could not get file modification time." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "RETR /" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "550 Failed to open file." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "PASV" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "227 Entering Passive Mode (192,168,1,15,130,172)" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "CWD /" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "250 Directory successfully changed." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP command: Client "90.3.x.x", "LIST" Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "150 Here comes the directory listing." Tue Dec 2 00:04:58 2008 [pid 301] [username] FTP response: Client "90.3.x.x", "226 Directory send OK."
Je trouve bizarre que le log m'affiche mon adresse IP privée. S'il y a un problème sur ce plan, ça expliquerait pourquoi j'arrive à accéder au FTP depuis les PC se trouvant chez moi (même sous-réseau, donc) et que ça merdoie chez les autres.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 Mon Dec 1 23:34:46 2008 [pid 30237] FTP command: Client "82.224.x.x", "USER username" Mon Dec 1 23:34:46 2008 [pid 30237] [username] FTP response: Client "82.224.x.x", "331 Please specify the password." Mon Dec 1 23:34:46 2008 [pid 30237] [username] FTP command: Client "82.224.x.x", "PASS <password>" Mon Dec 1 23:34:46 2008 [pid 30236] [username] OK LOGIN: Client "82.224.x.x" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "230 Login successful." Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "SYST" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "215 UNIX Type: L8" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "PWD" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "257 "/"" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "TYPE I" Mon Dec 1 23:34:46 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "200 Switching to Binary mode." Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "PASV" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "227 Entering Passive Mode (192,168,1,15,29,200)" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "SIZE /" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "550 Could not get file size." Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "MDTM /" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "550 Could not get file modification time." Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "RETR /" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "550 Failed to open file." Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "PASV" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "227 Entering Passive Mode (192,168,1,15,227,16)" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "CWD /" Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "250 Directory successfully changed." Mon Dec 1 23:34:47 2008 [pid 30270] [username] FTP command: Client "82.224.x.x", "LIST" Mon Dec 1 23:35:47 2008 [pid 30270] [username] FTP response: Client "82.224.x.x", "425 Failed to establish connection."
Je ne sais vraiment plus quoi tenter…
Quelqu'un aurait une idée ?
Merci.
Partager