docker-pure-ftpd icon indicating copy to clipboard operation
docker-pure-ftpd copied to clipboard

Can't access my FTP from outside

Open Richacinas opened this issue 2 years ago • 2 comments

Hi there,

My docker pure-ftpd setup has been working for a long time, however, I don't know what happened that I'm not able to access it anymore.

Here is my config:

ftp:
    image: stilliard/pure-ftpd
    container_name: ftp
    ports:
      - "21:21"
      - "30000-30009:30000-30009"
    environment:
      PUBLICHOST: <here the public IP of my server>
      FTP_USER_NAME: user
      FTP_USER_PASS: password
      FTP_USER_HOME: /var/www/html/my_website_folder
      FTP_USER_UID: 100
      FTP_USER_GID: 101
    volumes:
      - ./data/wordpress:/var/www/html/my_website_folder
      - ./data/ftp:/etc/ssl/privatec
    restart: unless-stopped

And here is the resulting opened ports on my Ubuntu server:

OnPaste 20221003-123027

Of course, when I try to connect via ftp client using my credentials (user/password), it just gets a timeout.

Richacinas avatar Oct 03 '22 10:10 Richacinas

If, from my host Ubuntu machine, I do:

 ftp -p localhost 21

I can use my user credentials and connect properly.

Richacinas avatar Oct 03 '22 10:10 Richacinas

This issue is possibly related to the following issue. https://github.com/stilliard/docker-pure-ftpd/issues/149

Warfront1 avatar Mar 10 '23 19:03 Warfront1