When connecting using FTP (passive), you might get the message "Retrieving directory listing...". The FTP client tries to fetch the directory using passive FTP, however, the log hangs on "Retrieving directory listing...". In this article we will resolve this.

  1. Open /etc/proftpd.conf
  2. Add `PassivePorts 35000 37000` on a new row.
  3. Restart proftpd `service xinetd restart`
  4. Create a new rule in the firewall to allow incoming port 35000-37000 over TCP.