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

Passive mode is not working #18

Closed P9110963 closed 5 years ago

P9110963 commented 6 years ago

Hi,

When I connected from FileZilla in passive mode I'm getting the below error. I have used the same settings as given in the repo. Error: Disconnected from server: ECONNABORTED - Connection aborted Error: Failed to retrieve directory listing

Note: Active mode is working fine without any issue. But need to understand what is blocking the passive mode.

P9110963 commented 6 years ago

Note: I'm running this in Azure vm.. does this support passive mode?

THLIVSQAZ commented 5 years ago

I got the same error,I run in vmware

THLIVSQAZ commented 5 years ago

I found the problem, passive mode ip address must you vps's ip

StartAt24 commented 5 years ago

I found the problem, passive mode ip address must you vps's ip hello, i got the same same error. What do you mean by "vps's ip"? what should i define "-e PASV_ADDRESS" ? “0.0.0.0” or "127.0.0.1" doesn't work.

THLIVSQAZ commented 5 years ago

yeah the 0.0.0.0 and 127.0.0.1 doesn't work ,passive mode will return an ip to the client ,let client to use this ip connect server,so the ip must accessible connection from the external network

chestercs commented 5 years ago

Hello. This happened me too over the internet connection, and found the solution for it. You need to change this line in the config file to YES pasv_addr_resolve=YES

then you can use PASV_ADDRESS env with your domain name to reach your ftp server over the internet. Also make sure to do the port forwarding properly. This is valid for Virtual enviroments aswell like vmware

StartAt24 commented 5 years ago

Hello. This happened me too over the internet connection, and found the solution for it. You need to change this line in the config file to YES pasv_addr_resolve=YES

then you can use PASV_ADDRESS env with your domain name to reach your ftp server over the internet. Also make sure to do the port forwarding properly. This is valid for Virtual enviroments aswell like vmware

It works! Thanks a lot!

fauria commented 5 years ago

PR merged.