If you are experiencing a Directory Listing Timeout error when connecting via FTP, it could be due to your ISP blocking port 21. Enabling Passive Mode in FTP can help resolve this issue. If you are using CSF (ConfigServer Firewall) on cPanel, you may need to unblock the necessary port range for your default FTP client, Pure-FTPD.
By default, the ports for Passive FTP mode are set from 49152 to 65534.
This guide will walk you through unblocking these ports in CSF.
Steps to Open Ports for Passive FTP in CSF
- Log in to WHM
- Access your Web Host Manager (WHM) dashboard.
- Navigate to ConfigServer Firewall
- In WHM, go to Plugins.
- Click on ConfigServer Firewall & Security.
- Modify Firewall Configuration
- Click on Firewall Configuration.
- Locate the settings TCP_IN and TCP_OUT.
- Add the following range to both fields:
49152:65534
Important: The TCP_IN and TCP_OUT fields are comma-separated. Ensure that the new range is added properly. If the last open port is 2096, modify the entry as follows:
2096,49152:65534
- Save and Restart CSF
- Scroll down and click Change to save your modifications.
- On the next screen, click Restart CSF + LFD to apply the changes.
By following these steps, you should be able to resolve Directory Listing Timeout errors and allow Passive FTP connections through CSF. If issues persist, double-check your configuration and ensure the port range is correctly added.
For further assistance, use the comments 🙂