Error registering the Proftpd directory on the Docker container

I am using proftpd for Ubuntu inside a Docker container. It is registered successfully, but could not get a list of directories.

Here is a screenshot of Filezilla

enter image description here

And a screenshot of the Proftpd log file

enter image description here

Any help?

+5
source share
3 answers

The problem is that proftpd advertises an internal IP address of 172 .... so the client cannot connect to it.

You can solve this problem by installing (in the proftpd.conf file)

MasqueradeAddress externalIP 

or by running conatiner using:

 docker run --net=host ..... 

This option uses the host's IP network so passive mode works fine.

+2
source

make sure that the configured passive ports (for example, PassivePorts 60000 65534) are set in the running container to allow incoming connections

0
source

Ftpd seems to have permission issues that change a working user. Try setting ftpd to run as the user you are USER userftp in with, using USER userftp dockers USER userftp ( https://docs.docker.com/reference/builder/#user ) in your Docker file.

Remember that you can force it to listen on port> 1024 and use -p 21:2121 when starting the container so that it starts on port 21 to the world.

It would be helpful if you placed the Docker file and the configuration that you are using so that we can verify this ourselves.

0
source

Source: https://habr.com/ru/post/1200254/


All Articles