<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.sophos.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Allowing FTP inbound through firewall</title><link>https://community.sophos.com/sophos-xg-firewall/f/discussions/113364/allowing-ftp-inbound-through-firewall</link><description>Hello, 
 I&amp;#39;m working with a company that manages our timeclocks. (badge based system...not important.) What is important, is that in order for the clocks to do a firmware update, supposedly, the company makes an ftp connection to the clocks. Like, wan</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406283?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 15:18:50 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:cadb418c-66bb-417a-8a5f-f3ed585f0dd3</guid><dc:creator>Lee Precision</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/flosupport"&gt;FloSupport&lt;/a&gt; and &lt;a href="/members/lucar-toni"&gt;LuCar Toni&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406183?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 22:33:25 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:ab9fae56-eeae-4bdd-94a0-8853380e1c4b</guid><dc:creator>FloSupport</dc:creator><description>&lt;p&gt;The Destination Host/Network, would be the IP address that the incoming FTP connection is being made to (in this case, your public WAN IP address). Your protected server(s) would be the internal/private IP of your timeclocks.&lt;/p&gt;
&lt;p&gt;Note that if you list multiple IPs in the protected server(s) field, this will allow the configuration of load balancing. See: &lt;a href="/kb/en-us/132277" target="_blank"&gt;Sophos XG Firewall: How to configure DNAT with load balancing&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406166?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 19:32:24 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:d67a929e-5bf9-40f7-a6b2-3360c2280228</guid><dc:creator>Lee Precision</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve set up the new rule and disabled the old one. I&amp;#39;ll watch the log for activity. Great article. The one thing in the article that wasn&amp;#39;t 100% clear to me was &amp;quot;Destination/Host Network.&amp;quot; Initially I selected an IP Range reflecting that of the timeclocks, but then after re-reading the article, I set it to Port #2, my gateway IP address.&lt;/p&gt;
&lt;p&gt;Do you know which would actually be correct in my case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406164?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 19:05:27 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:df52408c-dfaa-4f27-bbc0-2a985b03664e</guid><dc:creator>FloSupport</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/lee-precision"&gt;Lee Precision&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to create a business application rule (DNAT) rule for this. Rather than a &amp;quot;normal&amp;quot; network firewall rule.&lt;/p&gt;
&lt;p&gt;Take a look at this article: &lt;a href="/kb/en-us/123070" target="_blank"&gt;Sophos XG Firewall: How to configure a Business Application Rule for RDP&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Except change the RDP port to FTP of course. Hope that helps! Let me know if you run into any issues.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406161?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 18:58:07 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:d89023b0-b8c3-4980-a96f-f8394b933fda</guid><dc:creator>Michael Dunn</dc:creator><description>&lt;p&gt;FTP Helper /&amp;nbsp; FTP Proxy is for making outbound FTP connections, and one of its main purposes it to do AV scanning.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are doing inbound.&amp;nbsp; The firewall has an incoming FTP connection that specifies the firewall itself as the destination.&amp;nbsp; It doesn&amp;#39;t know what to do with it or where to forward it.&amp;nbsp; This is much like having web servers hosted in your network and using Web server protection / WAF.&lt;/p&gt;
&lt;p&gt;In the firewall you need to create a &amp;quot;Business Application Rule&amp;quot; not a &amp;quot;User/network Rule&amp;quot;.&amp;nbsp; But after that, I don&amp;#39;t know.&amp;nbsp; A DNAT rule?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406156?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 18:48:36 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:146ba873-e224-4818-bb95-1614101e3344</guid><dc:creator>Lee Precision</dc:creator><description>&lt;p&gt;Hey LuCar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That article was helpful, and allowed me to clean up my firewall rule a bit, but I&amp;#39;m still not sure.&lt;/p&gt;
&lt;p&gt;First, I have never seen a ftp server reaching out, unsolicited, to make a connection. Have you? (when considering the article, such a connection doesn&amp;#39;t even exist.)&lt;/p&gt;
&lt;p&gt;Secondly, a &amp;quot;technical&amp;quot; representative from this company said all I had to do was open port 21 to their IP address for an ftp connection...but that doesn&amp;#39;t make any sense to me. Of course the firewall doesn&amp;#39;t know what to do with the traffic, it is just random inbound traffic.&lt;/p&gt;
&lt;p&gt;Would some kind of port forwarding/trigger make sense? Like, incoming traffic on port 21 -&amp;gt; Timeclock IP&amp;#39;s?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve asked the representative for more information on their ftp servers configuration. I don&amp;#39;t think that there is much more that I can do in the meantime.&lt;/p&gt;
&lt;p&gt;Lastly, what is the FTP helper/proxy that you have mentioned? Is it a cli only feature or can it be found on the gui side too?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406154?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 18:13:41 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:e67c0e8e-e02a-4f36-99b0-db2aedb72917</guid><dc:creator>LuCar Toni</dc:creator><description>&lt;p&gt;FTP is kinda tricky.&lt;/p&gt;
&lt;p&gt;Most likely you are using FTP passive, right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://slacksite.com/other/ftp.html"&gt;https://slacksite.com/other/ftp.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So you are basically allowing the control traffic with Port 21 and Port 22.&lt;/p&gt;
&lt;p&gt;But you are missing the high port. XG has a FTP helper, but it is bundled with the FTP Proxy. (&lt;a href="/members/michael-dunn"&gt;Michael Dunn&lt;/a&gt;&amp;nbsp;Correct me, if i am wrong).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you would need to figure out, which ports are also needed in your FTP solution.&lt;/p&gt;
&lt;p&gt;This is possible via TCPdump.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Allowing FTP inbound through firewall</title><link>https://community.sophos.com/thread/406149?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 17:42:46 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:5d5e19ec-b171-452a-91f3-afe2dcc1a541</guid><dc:creator>Lee Precision</dc:creator><description>&lt;p&gt;Additionally, I put a computer on the same rules as the time clocks and I am able make an outbound ftp connection to the required IP address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>