{"id":1598,"date":"2015-09-17T19:58:58","date_gmt":"2015-09-18T01:58:58","guid":{"rendered":"http:\/\/www.supportpro.com\/blog\/?p=1598"},"modified":"2018-10-03T05:23:48","modified_gmt":"2018-10-03T11:23:48","slug":"ftp-connectivity-problem","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/ftp-connectivity-problem\/","title":{"rendered":"FTP connectivity problem"},"content":{"rendered":"<p>If you are getting following error while directory listing, follow the solution provided below :<\/p>\n<p>&#8212;&#8212;&#8212;-<br \/>\nftp&gt; ls<br \/>\n227 Entering Passive Mode (108,61,169,245,167,161).<br \/>\nftp: connect: No route to host<br \/>\n&#8212;&#8212;&#8212;-<\/p>\n<p><strong>Solution :<\/strong><\/p>\n<p>1. Edit <em>\/etc\/sysconfig\/iptables-config<\/em> and add this line:<\/p>\n<p><em>IPTABLES_MODULES=&#8221;ip_conntrack_ftp&#8221;<\/em><\/p>\n<p>2. Save it and restart iptables.<\/p>\n<p>That&#8217;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.<\/p>\n<p>Another solution is specify the passive ports that will be used on FTP server configuration, then open those specific ports on firewall.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are getting following error while directory listing, follow the solution provided below : &#8212;&#8212;&#8212;- ftp&gt; ls 227 Entering Passive Mode (108,61,169,245,167,161). ftp: connect: No route to host &#8212;&#8212;&#8212;-&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,6,3],"tags":[],"class_list":["post-1598","post","type-post","status-publish","format-standard","hentry","category-general-topics","category-linux-basics","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1598"}],"version-history":[{"count":2,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1598\/revisions"}],"predecessor-version":[{"id":3060,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1598\/revisions\/3060"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}