Directory listing failed in FileZilla with ProFTPd on Virtualmin

Checking proftpd’s log:

DecĀ  7 12:23:12 fr01-srv proftpd[5563]: (::ffff:[::ffff:]) - USER testuser: Login successful.
DecĀ  7 12:23:30 fr01-srv proftpd[5591]: (::ffff:[::ffff:]) - USER testuser: Login successful.

However, in Filezilla things are different:

Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

This issue is generally caused by a firewall restriction. Make sure your firewalls monitors FTP traffic and allows FTP-data connections. Edit iptables-config:

# nano /etc/sysconfig/iptables-config

And add/check that the proper modules are loaded:

IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp ip_conntrack_tftp"

Then restart the firewall and FTP should start working:

# /etc/init.d/iptables restart

Leave a Reply