enable passive mode in VSFTP

ftpFTP hangs or throws these error after a successful login.

Vsftp – ftp: connect: No route to host

This is because the FTP-data port is blocked by a firewall.

1. Make sure that passive mode is enabled (vsftp enables it by default). Check the file /etc/vsftpd/vsftpd.conf, for the following lines

 pasv_enable=YES

2. Also check whether the passive port range is open in the firewall. You can limit the port, for example 10000 to 11000, by adding the following lines in the file ‘/etc/vsftpd/vsftpd.conf’.

pasv_min_port=10000
pasv_max_port=11000

3. Restart vsftp service in server

service vsftpd restart

4. Open the specified port range in the firewall (Iptables) too.

-A RH-Firewall-1-INPUT -p tcp –dport 11000:11010 -j ACCEPT

 

WP Twitter Auto Publish Powered By : XYZScripts.com