You may get this error while connecting your client to FTP server. FTP client getting error 425 Failed to establish connection, while listing directory contents. FTP server gets “connection refused” when establishing Active FTP to FTP client.
First of all Check
check following parameters are uncommented and value is set as given
anonymous_enable=YES (This can be set as NO also in case of not allowing anonymous)
Check your iptable service. if it’s on, change it to off.
If above solution doesn’t work. run following command
if you have hosted over cloud or other have iptables on make sure vsftpd ports are open. Mostly it runs from 10000 or above.
You may get following error in listing.
200 PORT command successful. Consider using PASV. 425 Failed to establish connection
it means vsftpd ftp login successful but failed to establish connection while directory listing. make sure your client is passive enable ftp connection.
Allow the same ports to be access in iptables.
iptables -I INPUT -p tcp --destination-port 10000:10001 -j ACCEPT