Getting
following error in the filezilla :
PASV
Response: 227 Entering Passive Mode (119,18,57,237,6,29)
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
Response: 227 Entering Passive Mode (119,18,57,237,6,29)
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
Solution:
Open
passive port range in iptables and also in pure-ftpd configuration
file.
To
open the passive port range in pure-ftpd configuration file:
- Open the /etc/pure-ftpd.conf configuration file in a text editor, such as vi.
- Remove the number sign (#) from the beginning of the line which contains the PassivePortRange test.
- Change that line to the following :
PassivePortRange
49152 65534
- Save the changes to the configuration file.
- Run the command /usr/local/cpanel/scripts/restartsrv_ftpserver to restart the server.
To
open the passive port range in iptables :
To
open passive mode ports in your firewall, issue the following
commands at the command line as root:
iptables
-I INPUT -p tcp --dport 49152:65534 -j ACCEPT
- /etc/iptables-save
No comments:
Post a Comment