FTP not working, stops at MLSD

The firewall blocks passive mode FTP transfers.

To fix this error you need to:

open: /etc/pureftpd.conf

Find: PassivePortRange in /etc/pureftpd.conf

Remove the # and add this to the line: PassivePortRange 30000 35000

See TCP_IN in /etc/csf/csf.conf and add the passive port range to it

TCP_IN = “##,##,##,###,###,###,30000:35000”

Notice in TCP_IN you see 30000:35000 , that’s a range of ports. And based upon what you set for the PassivePortRange in /etc/pureftpd.conf, you should modify TCP_IN in /etc/csf/csf.conf to allow those inbound ports.

Next you need to restart both PureFTP and CSF after making the changes.