vsftpd: Failed to retrieve directory listing

Problem: If vsftpd failed to retrieves directory listing then do the following:

In vsftpd.conf

pasv_min_port=x
example : [ pasv_min_port=1023]

pasv_max_port=x
example : [pasv_max_port=1050]

Now add port 1023-1050 in iptables

iptables -A INPUT –source xx.xx.xx.xx -p tcp –dport 1023:1050 -j ACCEPT

it will allow filezilla to connect to ftp server via passive mode.

One Response to “vsftpd: Failed to retrieve directory listing”

  1. Bal Krishna says:

    Thanks… It really worked !!
    Thanx again.

Leave a Reply