Pure FTPd not getting connections

Discussion in 'Server Operation' started by nark, Jan 14, 2023.

  1. nark

    nark New Member

    Just installed a fresh copy of Ubuntu 20 and ISPConfig.
    All works great except the FTP server.

    My server in behind a NAT and, yes, I did set the passive ports and force externel ip in the PureFTPd config folder, restarded purefpd-mysql and forwarded in the router the range of ports (60000 - 65535) TCP

    The forward on the router works (As DNS, HTTP, HTTPS, SSH, etc works with no problem)

    I can connect via LAN to the FTP server (if I disable force IP) but cannot connect from outsite if the network (WAN)

    FileZilla client outputs this:

    Status: Logged in
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/" is your current location
    Command: TYPE I
    Response: 200 TYPE is now 8-bit binary
    Command: PASV
    Response: 227 Entering Passive Mode (X,X,X,X,237,233)
    Command: MLSD
    Response: 150 Accepted data connection
    Error: Connection timed out after 20 seconds of inactivity
    Error: Failed to retrieve directory listing

    I am pretty sure it's not a NAT/Firewall issue,

    Thank you!
    Last edited: Jan 14, 2023
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Is the same set in your server via ISPConfig UI? I asked because I think default passive ports set by ISPConfig may be different.
  3. nark

    nark New Member

    Yes, I modified the exact ports in:
    - /etc/pure-ftpd/conf/PassivePortRange
    - forwarded that range in the router
    - checked in firewall is disabled in ISPConfig (yes)
    - checked ufw if disabled in ubuntu (yes)
  4. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    are the 60000-65535 ports completely open?
    don't know what nat/router your using.. possibly traffic on those ports needs to be configured as establised/related to the traffic on port 20.

Share This Page