FTP server error: ftp: connect: No route to host solution

When setting up FTP server on Linux box the following error message ftp: connect: No route to host may pop-up during FTP client session. The cause of the above error is a missing ip_conntrack_ftp kernel module. We can check how this can be resolved.

Please follow the steps to resolve the issue:

Edit /etc/sysconfig/iptables-config and add this line:


Save it and restart iptables.

That’s because passive mode use non standard ports to communicate, so you need to keep trak of the ftp connections and iptables will allow them when necessary.