<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[resolved - FTP : connection closed by remote host]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have to communicate with an FTP server that is behind 2 firewalls. The first is pfSense the second Cisco ASA.<br />
I manage to establish my connection with the server and do the operations transiting on port 21.</p>
<p dir="auto">As soon as I try to do an "ls" or a "dir" I get "connection closed by remote host"</p>
<p dir="auto">I tested my exchanges from end to end and I can not find the origin of the problem.<br />
<img src="/assets/uploads/files/1570107343738-vpn.png" alt="VPN.png" class="img-markdown  img-fluid" /><br />
Here are the different tests I have done:</p>
<p dir="auto">FTP client 1 to FTP1 -&gt; OK<br />
FTP client 2 to FTP2 -&gt; OK<br />
FTP Client 1 to FTP2 -&gt; NOK</p>
<p dir="auto">I have removed all the port restrictions, passed the FTP session in passive and I do not understand why it does not work.</p>
<p dir="auto">Would I have omitted an essential point of FTP exchanges?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netgate.com/topic/147027/resolved-ftp-connection-closed-by-remote-host</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 02:09:15 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/147027.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Oct 2019 12:57:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 14:24:37 GMT]]></title><description><![CDATA[<p dir="auto">It seems that it works, I heard your review on the windows FTP client that does not handle the passive mode.</p>
<p dir="auto">So I retested with FileZilla forcing the passive mode and it works.</p>
<p dir="auto">I certainly had a rule that jammed before that.</p>
<p dir="auto">Thank you for your help.</p>
]]></description><link>https://forum.netgate.com/post/868875</link><guid isPermaLink="true">https://forum.netgate.com/post/868875</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Fri, 04 Oct 2019 14:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 14:14:53 GMT]]></title><description><![CDATA[<p dir="auto">Je confirme l'ASA est bien la route par défaut du serveur FTP, les routes sont établies de l'ASA au VPN en passant par pfSense.</p>
<p dir="auto">Le traceroute du SRV au CLT fait bien les 4 sauts prévus.</p>
<p dir="auto">Il s'agit en effet d'une erreur de dessin.</p>
]]></description><link>https://forum.netgate.com/post/868874</link><guid isPermaLink="true">https://forum.netgate.com/post/868874</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Fri, 04 Oct 2019 14:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 13:47:20 GMT]]></title><description><![CDATA[<p dir="auto">if your doing active ftp, which is the only thing windows ftp.exe client supports.. Then the server will talk back to you on the port and IP given by the client.</p>
<p dir="auto">Does the ftp server even know how to get back to you..</p>
<p dir="auto">In your drawing the ASA would need a route to get back to pfsense for the tunnel network.  Is pfsense its default route for the asa?  I also noticed you list pfsense address as .255 in you drawing.. That would be wrong a /24 - since that is the broadcast address of a /24</p>
]]></description><link>https://forum.netgate.com/post/868869</link><guid isPermaLink="true">https://forum.netgate.com/post/868869</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Fri, 04 Oct 2019 13:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 13:36:59 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately, I do not master the outs.<br />
I am in an industrial environment, the server and the client are black boxes.</p>
<p dir="auto">I have to my knowledge only the aforementioned elements namely that the customer is in passive mode</p>
<p dir="auto">I am trying to simulate FTP interaction with Windows FTP and FileZilla.</p>
<p dir="auto">I'm going to look at why ports "59042 &amp; co" would be blocked.</p>
<p dir="auto">Thank you for your analysis</p>
]]></description><link>https://forum.netgate.com/post/868867</link><guid isPermaLink="true">https://forum.netgate.com/post/868867</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Fri, 04 Oct 2019 13:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 12:55:56 GMT]]></title><description><![CDATA[<p dir="auto">Your problem is when your client tries to go to 10.240.69.89 port 230x256 + 162 = 59042 is not open...</p>
<p dir="auto">Your sniff is showing port command..</p>
<p dir="auto">Your not going to get ftp to work be it active or passive unless you actually understand how it works.. And then open the appropriate ports to allow the method your going to use to work...</p>
<p dir="auto">You would be much better off just using sftp, which would be 1 single port and you wouldn't have to worry about the data channel making another connection.</p>
<p dir="auto">What client are you using - how is your server setup.. for example windows ftp.exe doesn't even support passive.. And maybe your server is not setup to allow it, etc.</p>
]]></description><link>https://forum.netgate.com/post/868860</link><guid isPermaLink="true">https://forum.netgate.com/post/868860</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Fri, 04 Oct 2019 12:55:56 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Fri, 04 Oct 2019 12:22:13 GMT]]></title><description><![CDATA[<p dir="auto">I still have not found the origin of my problem.</p>
<p dir="auto">Do you have an idea ?</p>
]]></description><link>https://forum.netgate.com/post/868856</link><guid isPermaLink="true">https://forum.netgate.com/post/868856</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Fri, 04 Oct 2019 12:22:13 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Thu, 03 Oct 2019 14:21:36 GMT]]></title><description><![CDATA[<p dir="auto">Indeed bad line "Response: 227 Entering Passive Mode (10,240,69,89,230,162)"</p>
<p dir="auto">FTP client 1 requests PASSIVE mode</p>
<p dir="auto">Below is a frame capture:<br />
Left: the entry of the ASA<br />
Right: the exit of the ASA<br />
<img src="/assets/uploads/files/1570112490071-annotation-2019-10-03-162112.png" alt="Annotation 2019-10-03 162112.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">We see that the request port does not cross the firewall</p>
]]></description><link>https://forum.netgate.com/post/868706</link><guid isPermaLink="true">https://forum.netgate.com/post/868706</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Thu, 03 Oct 2019 14:21:36 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Thu, 03 Oct 2019 14:02:21 GMT]]></title><description><![CDATA[<p dir="auto">Your not using passive your seeing a port command...</p>
<p dir="auto">That is the command issued by the client to connect to him on port 236x256 + 54 or port 59762</p>
<p dir="auto">Here is good write up on the differences<br />
https://slacksite.com/other/ftp.html</p>
]]></description><link>https://forum.netgate.com/post/868695</link><guid isPermaLink="true">https://forum.netgate.com/post/868695</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Thu, 03 Oct 2019 14:02:21 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Thu, 03 Oct 2019 13:38:37 GMT]]></title><description><![CDATA[<p dir="auto">I use the passive mode.<br />
I noticed in my screenshots the frame "Request: PORT 10,8,9,11,236,54" and thus allowed my FTP 2 to communicate with the VPN tunnel.</p>
]]></description><link>https://forum.netgate.com/post/868688</link><guid isPermaLink="true">https://forum.netgate.com/post/868688</guid><dc:creator><![CDATA[LLFT]]></dc:creator><pubDate>Thu, 03 Oct 2019 13:38:37 GMT</pubDate></item><item><title><![CDATA[Reply to resolved - FTP : connection closed by remote host on Thu, 03 Oct 2019 13:07:54 GMT]]></title><description><![CDATA[<p dir="auto">And are you using active or passive?</p>
<p dir="auto">In active the server will try and connect back to the client.. With passive the server will send an IP and port that the client connects to..</p>
<p dir="auto">So you would need to make sure the ftp server sends the correct IP to the client that it can get to, and you would need to make sure the ports that server would use for the passive range are forwarded as well.</p>
]]></description><link>https://forum.netgate.com/post/868667</link><guid isPermaLink="true">https://forum.netgate.com/post/868667</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Thu, 03 Oct 2019 13:07:54 GMT</pubDate></item></channel></rss>