fauria / docker-vsftpd

🐳 vsftpd Docker image based on Centos 7. Supports passive mode and virtual users.
https://hub.docker.com/r/fauria/vsftpd/
Apache License 2.0
414 stars 341 forks source link

This never works... still bug! #22

Closed emper0r closed 5 years ago

emper0r commented 5 years ago

This never works... still bug!

Stato: Connessione a 192.168.7.125:21... Stato: Connessione stabilita, in attesa del messaggio di benvenuto... Stato: Server non sicuro, non supporta FTP su TLS. Stato: Accesso effettuato Stato: Lettura elenco cartelle... Comando: PWD Risposta: 257 "/" Comando: TYPE I Risposta: 200 Switching to Binary mode. Comando: PASV Risposta: 227 Entering Passive Mode (127,0,0,1,82,108). Comando: LIST Errore: La connessione dati non può essere stabilita. ECONNREFUSED - Connessione rifiutata dal server

Docker on server centos [root@centos-7-125 ~]# docker run -d -v hosting:/home/vsftpd -p 20:20 -p 21:21 -p 21100-21110:21100-21110 -e FTP_USER=vhost -e FTP_PASS=vpassword -e PASV_ADDRESS=127.0.0.1 -e PASV_MIN_PORT=21100 -e PASV_MAX_PORT=21110 --name vsftpd --restart=always fauria/vsftpd

can't see directory only login....

Tue Mar 5 15:24:16 2019 [pid 21] CONNECT: Client "192.168.113.2" Tue Mar 5 15:24:16 2019 [pid 20] [vhost] OK LOGIN: Client "192.168.113.2"

!! but never connect to see directories !!

Filezilla setting on pasive mode and / or active using port max/min 21110 / 21100 never hit!

Originally posted by @emper0r in https://github.com/fauria/docker-vsftpd/issues/1#issuecomment-469722667

emper0r commented 5 years ago

Now Works....

The issue is using PASV_ADDRESS=127.0.0.1