{"id":225,"date":"2009-10-16T13:50:49","date_gmt":"2009-10-16T17:50:49","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=225"},"modified":"2013-03-20T08:40:05","modified_gmt":"2013-03-20T12:40:05","slug":"ftp-425-unable-to-build-data-connection","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/ftp-425-unable-to-build-data-connection","title":{"rendered":"Ftp: 425 Unable to build data connection"},"content":{"rendered":"<p><strong>Error Message:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>LIST<br \/>\n425 Unable to build data connection: Connection timed out<br \/>\nPASV<br \/>\n227 Entering Passive Mode (xx,xx,xx,xx,xx,xxx).<br \/>\nconnecting data channel to xx.xxx.xx.xxx:54963<\/strong><\/span><\/p><\/blockquote>\n<p>The above error message is received while you Ftp to an account successfully but it does not list the files and directories within it. The <strong>reason for the error message<\/strong> is, the <strong>kernel modules that are required for Ftp<\/strong> &#8220;i.e. to <strong>keep track of every Ftp connection and carry out the data transfer of it on another port<\/strong>&#8221; is not loaded.<\/p>\n<p>The <strong>modules are &#8220;ip_conntrack&#8221; and &#8220;ip_conntrack_ftp&#8221;<\/strong> which has to be loaded using the &#8216;modprobe&#8217; command.<\/p>\n<p>SSH to your server as user root and execute the following commands:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong># \/sbin\/modprobe ip_conntrack<br \/>\n# \/sbin\/modprobe ip_conntrack_ftp<\/strong><\/span><\/p><\/blockquote>\n<p>To verify if the modules are loaded properly, execute<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong># lsmod | grep ftp<\/strong><\/span><\/p><\/blockquote>\n<p>This should list the modules you just loaded. Once they appear, ftp should list the files\/directories on successful login.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error Message:<br \/>\nLIST<br \/>\n425 Unable to build data connection: Connection timed out<br \/>\nPASV<br \/>\n227 Entering Passive Mode (xx,xx,xx,xx,xx,xxx).<br \/>\nconnecting data channel to xx.xxx.xx.xxx:54963<br \/>\nThe above error message is received while you Ftp to an account successfully but it does not list the files and directories within it. The reason for the error message is, the kernel modules that are required for Ftp &#8220;i.e. to keep track of every Ftp connection and carry out the data transfer of it on another port&#8221; is not loaded.<br \/>\nThe modules are &#8220;ip_conntrack&#8221; and &#8220;ip_conntrack_ftp&#8221; which has to be loaded [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[248,924,929,927,252,926,928,925],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/225"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":2118,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions\/2118"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}