Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proftpd directory listing error on Docker container

I have been using proftpd on Ubuntu inside a Docker container. It logs in successfully but failed to get directory listing.

Here is the screenshot of Filezilla

enter image description here

And screenshot of Proftpd log file

enter image description here

Any help?

like image 461
h_a86 Avatar asked Aug 13 '14 17:08

h_a86


1 Answers

The problem is the proftpd advertises the internal ip address 172.... so the client cannot connect to it.

You can solve this by setting (in the proftpd.conf)

MasqueradeAddress externalIP

or by running the conatiner using:

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

This option uses the host ip network so the passive mode will work fine.

like image 67
user3482546 Avatar answered Sep 28 '22 01:09

user3482546