{"id":336,"date":"2014-06-28T01:13:07","date_gmt":"2014-06-28T01:13:07","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=336"},"modified":"2014-06-28T01:13:07","modified_gmt":"2014-06-28T01:13:07","slug":"ftp-error-econnrefused-connection-refused-by-server-proftp","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/06\/28\/ftp-error-econnrefused-connection-refused-by-server-proftp\/","title":{"rendered":"FTP error &#8211; ECONNREFUSED &#8211; Connection refused by server-Proftp"},"content":{"rendered":"<p>When connecting to the server via ftp and you are sure about the credentials and the firewall rules and iptables. Check DNS and the proftpd.conf file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# dig domain.com\ndomain.com.       21599   IN      A       216.xx.xx.xx\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# nano \/etc\/proftpd.conf\nPort                            21\nMasqueradeAddress       216.xx.xx.xx\nPassivePorts                    60000 65000\n\n<\/pre>\n<p>Check the MasqueradeAddress feature and see if matched your IP for the domain you are connecting to.<\/p>\n<p>Also &#8211; if behind a firewall&#8230;<\/p>\n<p>Create a VirtualHost for 216.xx.xx.xx with the following configuration:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&lt;VirtualHost 192.168.0.5&gt;\nServerName &quot;ProFTPD&quot;\nMasqueradeAddress 216.xx.xx.xx\nPassivePorts 60000 65000\n&lt;\/VirtualHost&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When connecting to the server via ftp and you are sure about the credentials and the firewall rules and iptables. Check DNS and the proftpd.conf file: # dig domain.com domain.com. 21599 IN A 216.xx.xx.xx # nano \/etc\/proftpd.conf Port 21 MasqueradeAddress 216.xx.xx.xx PassivePorts 60000 65000 Check the MasqueradeAddress feature and see if matched your IP for &#8230; <a title=\"FTP error &#8211; ECONNREFUSED &#8211; Connection refused by server-Proftp\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/06\/28\/ftp-error-econnrefused-connection-refused-by-server-proftp\/\" aria-label=\"Read more about FTP error &#8211; ECONNREFUSED &#8211; Connection refused by server-Proftp\">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":[89],"tags":[],"class_list":["post-336","post","type-post","status-publish","format-standard","hentry","category-proftpd"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/336","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=336"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}