Bonjour !
Je viens vers vous car je bloque depuis pas mal de temps sur un problème d'accès FTP en mode passif sur mon NAS DS410... J'ai pourtant fait pas mal de recherches mais je dois passer à côté de quelque chose !
J'obtiens systématiquement l'erreur suivante en testant depuis https://ftptest.net (je possède un dns dynamique chez noip):
Command: LIST
Error: Could not establish data connection: Connection refused.
En local tout est OK.
J'ai lu que cela pouvait être un soucis d'accès au port 20 (data) mais j'ai pourtant redirigé ce port.
Mon NAS se trouve derrière une Bbox sensation.
Voici le paramétrage au niveau du NAS :
Et les règles NAT/PAT :
Les règles du pare-feu sur la box :
Au niveau du pare-feu du NAS le FTP et le port 20 sont ouverts (de toute façon la case "Si aucune règle n'est remplie autorisé l'accès" est cochée). Je ne sais pas comment le désactiver complètement.
Voici les détails complets de la connexion :
Status: Resolving address of xxxxxxxxxxx (je masque )
Status: Connecting to xxxxxxxxxxx
Warning: The entered address does not resolve to an IPv6 address.
Status: Connected, waiting for welcome message...
Reply: 220 S1 FTP server ready.
Command: CLNT https://ftptest.net on behalf of xxxxxx
Reply: 500 CLNT https://ftptest.net on behalf of xxxxxx: command not understood.
Command: AUTH TLS
Reply: 234 AUTH SSL command successful.
Status: TLS handshake successful, verifying certificate...
Command: USER sravier
Reply: 331 Password required for sravier.
Command: PASS *******
Reply: 230 User sravier logged in.
Command: SYST
Reply: 215 UNIX Type: L8
Command: FEAT
Reply: 211- Extensions supported:
Reply: AUTH TLS
Reply: PBSZ
Reply: PROT
Reply: SIZE
Reply: MDTM
Reply: MFMT
Reply: REST STREAM
Reply: UTF8
Reply: 211 End.
Warning: The server does not indicate MLSD support. MLSD uses a well-specified listing format. Without MLSD, directory listings have to be obtained using LIST which uses an unspecified output format.
Warning: The server does not indicate EPSV support. EPSV is mandatory for clients connecting via IPv6 and may be needed by clients behind a proxy.
Command: PBSZ 0
Reply: 200 PBSZ command successful (PBSZ=0).
Command: PROT P
Reply: 200 Protection level set to Private.
Command: PWD
Reply: 257 "/" is current directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I.
Command: PASV
Reply: 227 Entering Passive Mode (xxx,xxx,xx,xxx,216,251)
Command: LIST
Error: Could not establish data connection: Connection refused
Merci pour votre aide car la je ne vois pas ce que j'ai bien peu rater !
PS : je vois qu'il y a des avertissements sur IPv6 mais même avant quand ils n'apparaissaient pas la connexion ne se faisait pas...