FileZilla error: "The data connection could not be established: ETIMEDOUT - Connection attempt timed out" when connecting to ProFTPD

6,334

Based on your comments, your FTP server is not correctly configured to announce its external IP address in PASV command response.

With ProFTPD server, you need to update the MasqueradeAddress directive in proftpd.conf.

See also ProFTPD: Firewalls, Routers, and NAT and my article about network setup for FTP.

Share:
6,334

Related videos on Youtube

vocotipex
Author by

vocotipex

Updated on September 18, 2022

Comments

  • vocotipex
    vocotipex almost 2 years

    I'm still getting the error after trying the solutions here. Any other ideas how to solve this? I'm using a CentOS 7 server (64bit, x86), on AWS.

    Below are the messages from FileZilla.

    Status: Connecting to XXX.XXX.XX.XXX:21...
    Status: Connection established, waiting for welcome message...
    Status: Logged in
    Status: Retrieving directory listing...
    Command:    PWD
    Response:   257 "/" is the current directory
    Command:    TYPE I
    Response:   200 Type set to I
    Command:    PASV
    Response:   227 Entering Passive Mode (54,145,XX,XXX,206,110).
    Command:    MLSD
    Error:  The data connection could not be established: ETIMEDOUT - Connection attempt timed out
    
    • Martin Prikryl
      Martin Prikryl over 4 years
      What server is it? Is it your server? (How did you set it up?) Or 3rd party server? Is 54.145.89.103 the IP address you are connecting to? (the same as XXX.XXX.XX.XXX)?
    • vocotipex
      vocotipex over 4 years
      I'm using a CentOS 7 server (64bit, x86), on AWS. No, 54.145.89.103 is not the address I'm trying to connect. My server IP is different.
    • Martin Prikryl
      Martin Prikryl over 4 years
      What FTP server is that?
    • vocotipex
      vocotipex over 4 years
      I think it's proftpd
  • vocotipex
    vocotipex over 4 years
    you're the man, Martin!