IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

[vsFTPd] 425 Failed to establish connection.


Sujet :

Réseau

  1. #1
    Membre chevronné
    Avatar de Florian Goo
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    680
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 680
    Par défaut [vsFTPd] 425 Failed to establish connection.
    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 :
    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."
    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
     
    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 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.

    Je ne sais vraiment plus quoi tenter…
    Quelqu'un aurait une idée ?

    Merci.
    Cours : Initiation à CMake
    Projet : Scalpel, bibliothèque d'analyse de code source C++ (développement en cours)
    Ce message a été tapé avec un clavier en disposition bépo.

  2. #2
    Membre chevronné
    Avatar de Florian Goo
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    680
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 680
    Par défaut
    Parfois, il suffit de parler du problème pour trouver des solutions

    J'ai ajouté ceci au vsftpd.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    pasv_addr_resolve=YES
    pasv_address=mon_adresse.homeftp.org
    Il y avait donc bien un problème de NAT.

    J'arrive maintenant à avoir les mêmes erreurs que les clients hors de mon réseau privé. C'est beaucoup plus facile pour tester, maintenant.

    Je vient donc de m'apercevoir que le FTP ne fonctionne qu'en mode actif, ce qui est embêtant sachant que tout est réglé en passif chez les clients, surtout s'ils utilisent leur navigateur.

    Je vous tiens au courant, au cas où certains auraient le même problème.
    Cours : Initiation à CMake
    Projet : Scalpel, bibliothèque d'analyse de code source C++ (développement en cours)
    Ce message a été tapé avec un clavier en disposition bépo.

  3. #3
    Membre chevronné
    Avatar de Florian Goo
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    680
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 680
    Par défaut
    Hem… c'est tellement honteux que je suis content d'avoir trouvé l'erreur tout seul !

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    pasv_max_port=2000
    pasv_min_port=2050
    2000 maximum, mais 2050 minimum… pas de commentaire !

    Merci à tous pour le soutient spirituel de votre inconscient
    Cours : Initiation à CMake
    Projet : Scalpel, bibliothèque d'analyse de code source C++ (développement en cours)
    Ce message a été tapé avec un clavier en disposition bépo.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [MySQL] A connection attempt failed because the connected party did not properly ..
    Par kamnouz dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 26/01/2011, 16h00
  2. [MySQL] A connection attempt failed because the connected party did not properly respond
    Par cdevl32 dans le forum PHP & Base de données
    Réponses: 6
    Dernier message: 06/09/2010, 22h51
  3. Réponses: 1
    Dernier message: 23/12/2009, 10h46
  4. erreur "Could not establish connection to network"
    Par czar_m dans le forum Services Web
    Réponses: 0
    Dernier message: 02/04/2009, 01h55
  5. Could not establish connection to network
    Par nemya dans le forum Services Web
    Réponses: 1
    Dernier message: 31/03/2008, 11h19

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo