{"id":1780,"date":"2015-02-05T00:25:10","date_gmt":"2015-02-05T00:25:10","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1780"},"modified":"2015-02-05T00:25:10","modified_gmt":"2015-02-05T00:25:10","slug":"ftp-errors-centos","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/05\/ftp-errors-centos\/","title":{"rendered":"FTP Errors on CentOS"},"content":{"rendered":"<p>AI_NODATA &#8211; No address associated with nodename error in your FTP client. Sometimes an EAI_NODATA error is also related to either a EHOSTUNREACH error, or an ECONNABORTED error as well.<\/p>\n<p>Command: MLSDError: Connection timed outError: Failed to retrieve directory listing<\/p>\n<p>Status: Waiting to retry&#8230;Status: Disconnected from serverStatus: Resolving address of robertlacylv.comStatus: Connection attempt failed with &#8220;EAI_NODATA &#8211; No address associated with nodename&#8221;.Error: Could not connect to server.<\/p>\n<p>Check iptables:<\/p>\n<p>Make sure firewall is not blocking your access<\/p>\n<p>Run following command to see what iptables rules are setup:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/sbin\/iptables -L -n\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# Generated by iptables-save v1.4.7 on Wed Feb  4 23:44:12 2015\n*filter\n:INPUT ACCEPT &#x5B;0:0]\n:FORWARD ACCEPT &#x5B;0:0]\n:OUTPUT ACCEPT &#x5B;88:48078]\n:acctboth - &#x5B;0:0]\n:cP-Firewall-1-INPUT - &#x5B;0:0]\n-A INPUT -j cP-Firewall-1-INPUT\n-A INPUT -j acctboth\n-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT\n-A INPUT -p icmp -j ACCEPT\n-A INPUT -i lo -j ACCEPT\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT\n-A INPUT -j REJECT --reject-with icmp-host-prohibited\n-A FORWARD -j cP-Firewall-1-INPUT\n-A FORWARD -j REJECT --reject-with icmp-host-prohibited\n-A OUTPUT -j acctboth\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 993 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2082 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2078 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 53 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2077 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 26 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 143 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 995 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 110 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2086 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2087 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2095 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 465 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2096 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT\n-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2083 -j ACCEPT\n-A cP-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT\nCOMMIT\n\n<\/pre>\n<p>Add the passive port range:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n-A INPUT -p tcp -m tcp --dport 30000:50000 -j ACCEPT\n-A INPUT -p tcp -m tcp --dport 30000:50000\n\n<\/pre>\n<p>Restart ftp on cpanel<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/usr\/local\/cpanel\/scripts\/restartsrv_ftpserver\n<\/pre>\n<p>You can temporary clear all iptables rules so that you can troubleshoot problem. If you are using Red Hat or Fedora Linux type command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/etc\/init.d\/iptables save\n# \/etc\/init.d\/iptables stop\n\n<\/pre>\n<p>If you are using other Linux distribution type following commands:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# iptables -F\n# iptables -X\n# iptables -t nat -F\n# iptables -t nat -X\n# iptables -t mangle -F\n# iptables -t mangle -X\n\n<\/pre>\n<p>Source: https:\/\/documentation.cpanel.net\/display\/CKB\/How+to+Enable+FTP+Passive+Mode#HowtoEnableFTPPassiveMode-HowdoIenablethepassiveportrangeforPure-FTPd?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI_NODATA &#8211; No address associated with nodename error in your FTP client. Sometimes an EAI_NODATA error is also related to either a EHOSTUNREACH error, or an ECONNABORTED error as well. Command: MLSDError: Connection timed outError: Failed to retrieve directory listing Status: Waiting to retry&#8230;Status: Disconnected from serverStatus: Resolving address of robertlacylv.comStatus: Connection attempt failed with &#8230; <a title=\"FTP Errors on CentOS\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/05\/ftp-errors-centos\/\" aria-label=\"Read more about FTP Errors on CentOS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-1780","post","type-post","status-publish","format-standard","hentry","category-ftp"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1780"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1780\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}