If you are getting following error while directory listing, follow the solution provided below :
———-
ftp> ls
227 Entering Passive Mode (108,61,169,245,167,161).
ftp: connect: No route to host
———-
Solution :
1. Edit /etc/sysconfig/iptables-config and add this line:
IPTABLES_MODULES=”ip_conntrack_ftp”
2. Save it and restart iptables.
That’s because passive mode use non standard ports to communicate, so you need to keep track of the ftp connections and iptables will allow them when necessary.
Another solution is specify the passive ports that will be used on FTP server configuration, then open those specific ports on firewall.
If you require help, contact SupportPRO Server Admin