{"id":1475,"date":"2018-01-26T10:03:57","date_gmt":"2018-01-26T10:03:57","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=1475"},"modified":"2021-03-14T19:29:59","modified_gmt":"2021-03-14T19:29:59","slug":"solve-ftp-connection-fails-passive-mode-on-pure-ftp-configserver","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/solve-ftp-connection-fails-passive-mode-on-pure-ftp-configserver\/","title":{"rendered":"Solve FTP Connection fails passive mode on Pure FTP configserver"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1475\" class=\"elementor elementor-1475\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-98a60e0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"98a60e0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-459a1aa\" data-id=\"459a1aa\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-edf7e86 elementor-widget elementor-widget-heading\" data-id=\"edf7e86\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Error Case: Failed to retrieve directory listing<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fbb6edb elementor-widget elementor-widget-text-editor\" data-id=\"fbb6edb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tyou configured your domain name with cpanel and add your FTP username and password correctly , when you are trying to connect to your website using filezilla software your are getting the following error:\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a6f03e4 elementor-widget elementor-widget-code-highlight\" data-id=\"a6f03e4\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>Command: PWD\nResponse: 257 \u201c\/\u201d is your current location\nCommand: TYPE I\nResponse: 200 TYPE is now 8-bit binary\nCommand: PASV\nResponse: 227 Entering Passive Mode \nCommand: MLSD\nError:        The data connection could not be established: ETIMEDOUT \u2013 Connection attempt timed out\nError:        Connection timed out after 60 seconds of inactivity\nError:        Failed to retrieve directory listing<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d1b8588 elementor-widget elementor-widget-heading\" data-id=\"d1b8588\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to solve FTP Failed to retrieve directory listing from CSF ConfigServer Security &amp; Firewall <\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a7bb6e elementor-widget elementor-widget-text-editor\" data-id=\"3a7bb6e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>the issue with this ftp error that your server is blocking the\u00a0<strong>Passive port range 30000 35000\u00a0<\/strong>, so we have to allow those port range from\u00a0<em><strong>configserver<\/strong><\/em>\u00a0by allowing\u00a0<strong>TCP_IN\u00a0<\/strong>,\u00a0to do that you can do it by two ways:<\/p>\n<ul>\n<li>From your\u00a0<strong>WHM Home\u00a0\u00bbPlugins\u00a0\u00bbConfigServer Security &amp; Firewall ,<\/strong>\u00a0Allow incoming TCP ports on\u00a0<b>TCP_IN\u00a0<\/b>=\u00a0then<strong>\u00a0<\/strong>add the following port range 30000:35000 and press\u00a0<strong>Change<\/strong>\u00a0Button, and CSF will ask for restart the configserver to take effect , Click\u00a0<strong>Restart Csf+ldf<\/strong>\u00a0button , then you will be able to connect to your FTP site without any issue.<\/li>\n<li>Or you can do the following step:\n<ol>\n<li>Login to the server via SSH as root<\/li>\n<li>Edit \/etc\/csf\/csf.conf and look for the line that begins with:\u00a0TCP_IN<\/li>\n<li>add 30000:35000 to TCP_IN section .<\/li>\n<li>Run csf -r to reload the config in the live firewall<\/li>\n<\/ol>\n<\/li>\n<\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-869145b elementor-widget elementor-widget-heading\" data-id=\"869145b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Solve Failed to retrieve directory listing Over SSL\n<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9e9b406 elementor-widget elementor-widget-text-editor\" data-id=\"9e9b406\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In this scenario you can connect via FTP on plain text (none secure connection ), but unable to use\u00a0<strong>FTP over TLS<\/strong>\u00a0, you are getting the\u00a0<span style=\"color: #ff0000;\"><strong>Error:Failed to retrieve directory listing<\/strong><\/span>\u00a0.\u00a0<\/p>\n<p>You\u00a0can follow the same steps as above but replace the port range on those steps with\u00a0<strong>60000:60100<\/strong><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Error Case: Failed to retrieve directory listing you configured your domain name with cpanel and add your FTP username and password correctly , when you are trying to connect to your website using filezilla software your are getting the following error: Command: PWD Response: 257 \u201c\/\u201d is your current location Command: TYPE I Response: 200 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1481,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,182,5],"tags":[4,189,178,48,30,74],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1475"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=1475"}],"version-history":[{"count":28,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1475\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1475\/revisions\/1908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/1481"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=1475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=1475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=1475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}