<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Publishing</title><link>http://forums.iis.net/1045.aspx</link><description>Discussion around anything related to publishing content on the IIS 7 web platform</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904966.aspx</link><pubDate>Thu, 28 May 2009 00:08:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904966</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904966.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904966</wfw:commentRss><description>&lt;p&gt;OK - I finally got FTPS working thru my Firewalls (there are actually two hardware firewalls in series, plus the Windows Firewall running on the Win 2008 Web/FTP Server).&lt;/p&gt;
&lt;p&gt;The final problem with being unable to establish a Data channel connection on the specified port range was&amp;nbsp;traced back to the &lt;em&gt;Port Redirection&lt;/em&gt; rules in my Router (which is actually between my hardware firewall and the actual internet).&lt;/p&gt;
&lt;p&gt;Turns out that it is unable to actually map an external port range to an internal one properly in the &lt;em&gt;Port Redirection&lt;/em&gt; settings. I deleted the rule and just rely on the port range specified in the &lt;em&gt;Open Ports&lt;/em&gt; settings area to map them thru to the DMZ hardware firewall&lt;/p&gt;
&lt;p&gt;Works fine now from the internet. I can open an Explicit FTP over SSL/TLS session from FileZilla, SmartFTP or FireFTP clients.&lt;/p&gt;
&lt;p&gt;And Lex, in reply to your last question - The IP address that I masked out was the WAN side of my hardware firewall. Yes, I guess I could remove the IP address specified in the FTP Firewall Support area in IIS and it might work as the hardware firewall then wouldn&amp;#39;t see an address conflict in the PASV mode request reply packet. But, as I was aiming for FTP over SSL ultimately (I don&amp;#39;t allow non-SSL connections to my FTP sites) and it works then I don&amp;#39;t need to do this. However, for anyone who has a Snapgear firewall (or indeed any firewall appliance that uses the same Linux kernel as the Snapgear unit that I have - a Snapgear SME550 (also known as an SG550) and they want to use plain passive mode FTP through it, then your idea could be the way to get it to work. I am guessing that if you did this, then it would be up to the client software to make an assumption about the IP address to attempt the connection on?&lt;/p&gt;
&lt;p&gt;Thanks for all your help guys, much appreciated.&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904889.aspx</link><pubDate>Wed, 27 May 2009 10:24:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904889</guid><dc:creator>lextm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904889.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904889</wfw:commentRss><description>&lt;p&gt;Is the IP address you masked out the IP address of the FTP server? Or it is simply the address of the firewall device? &lt;/p&gt;
&lt;p&gt;If it is the firewall address, you may consider remove External Firewall IP Address setting in FTP 7.5 and test again. Some firewall products do not support that feature.&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904873.aspx</link><pubDate>Wed, 27 May 2009 06:28:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904873</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904873.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904873</wfw:commentRss><description>&lt;p&gt;OK, analyzing the error on the Hardware firewall shows a fundamental problem with plain (un-encrypted)&amp;nbsp;FTP thru this device - the &lt;em&gt;conntrack_ftp&lt;/em&gt; module is opening the reply packet from the server and&amp;nbsp;silently dropping&amp;nbsp;it because the IP address specified in the reply (which is the IP address specified in the FTP Firewall Support settings page in IIS) doesn&amp;#39;t match the IP address that the packet is being sent from (which is the internal IP address of the FTP server).&lt;/p&gt;
&lt;p&gt;It recognizes this as it drops the packet silently - hence the reply never gets to the client. Crappy.&lt;/p&gt;
&lt;p&gt;I thought of a workaround though - use FTP over SSL - which is actually what I was aiming for in the end anyway. That way, the packets will be encrypted and the Hardware firewall will be unable to do anything &amp;#39;smart&amp;#39; with them. It will just have to deliver it as per the rules that I have defined.&lt;/p&gt;
&lt;p&gt;Trying this succeeds! FTP over SSL shows the server replying and the Client then attempts to open a connection on the external IP/port in the reply...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;but now I am getting a timeout at the &lt;em&gt;Opening BINARY mode data connection&lt;/em&gt; point:-&lt;/p&gt;
&lt;p&gt;&lt;font color="#000080" size="3"&gt;&lt;font color="#000080" size="3"&gt;Command: PASV&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#008000" size="3"&gt;&lt;font color="#008000" size="3"&gt;Response: 227 Entering Passive Mode (*,*,*,*,19,43).&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#000080" size="3"&gt;&lt;font color="#000080" size="3"&gt;Command: LIST&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#008000" size="3"&gt;&lt;font color="#008000" size="3"&gt;Response: 150 Opening BINARY mode data connection.&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#ff0000" size="3"&gt;&lt;font color="#ff0000" size="3"&gt;Error: Connection timed out Error: Failed to retrieve directory listing &lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Once again, I&amp;#39;ve obfuscated the IP address (for what it is worth...).&lt;/p&gt;
&lt;p&gt;Who would have thought it would be THAT hard to get something as old as FTP working?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll tackle it again from the office tomorrow (at home now - the sun set while I was doing this stuff!).&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904871.aspx</link><pubDate>Wed, 27 May 2009 05:15:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904871</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904871.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904871</wfw:commentRss><description>&lt;p&gt;Ah, man I&amp;#39;m tired now. I&amp;#39;ve spent the whole day looking this one over, researching and trying different things&amp;nbsp;and I am still stuck on this: &lt;/p&gt;
&lt;p&gt;The reply from the FTP server &lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3" face="Calibri"&gt;227 Entering Passive Mode (192,170,1,1,19,41).&lt;/font&gt;&lt;/span&gt;, which contains the Data port range info for the client to connect on just doesn&amp;#39;t appear to be getting to the client machine (Wireshark logs in the previous post hint at that as there is just nothing in the Client after the&amp;nbsp;PASV command is issued). This is totally weird - it&amp;#39;s like the whole TCP conversation just ends after the server sends the reply to the client.&lt;/p&gt;
&lt;p&gt;The client never even attempts to connect to the Data port as it never receives the &lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3" face="Calibri"&gt;227 Entering Passive Mode (192,170,1,1,19,41). &lt;/font&gt;&lt;/span&gt;response from the server telling it which ports to connect on.&lt;/p&gt;
&lt;p&gt;I took a close look at the Hardware Firewall System Logs and this is what I see when a client FTP session fails at the PASV command:-&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;May 27 16:38:19 kernel: conntrack_ftp: ip mismatch: 192,170,1,1 != 192.168.1.* &lt;br /&gt;May 27 16:38:26 last message repeated 5 time(s) &lt;br /&gt;&lt;/font&gt;&lt;font color="blue"&gt;May 27 16:38:26 kernel: conntrack_ftp: ip mismatch: 192,170,1,1 != 192.168.1.* &lt;br /&gt;&lt;/font&gt;&lt;font color="blue"&gt;May 27 16:38:35 last message repeated 1 time(s) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve obfuscated the last octet in the IP addresses with *&amp;#39;s for posting here (probably not worth doing but hey) I did a little Googling on the &lt;em&gt;conntrack_ftp&lt;/em&gt; bit and some of it looked worriesome - these messages might indicate that my return message packet is getting silently dropped by the firewall (perhaps???) due to some obscure error. I am unsure though as I don&amp;#39;t know much about the Linux kernel that runs in the Snapgear firewall.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve double checked the Data Port ranges in both the IIS settings and in the Hardware Firewall Filters and NAT rules and they are identical (I used 4900-4910 as per your (Steve&amp;#39;s) blog post).&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904861.aspx</link><pubDate>Wed, 27 May 2009 02:34:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904861</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904861.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904861</wfw:commentRss><description>&lt;p&gt;Yeah FTP 7.5 (7.0) cache stuff.&amp;nbsp; restarting the service &amp;#39;resets&amp;#39; if you will settings so new ones can take effect.&amp;nbsp;&amp;nbsp; I would verify the PASV ports are identical.&amp;nbsp; You are close :P&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904848.aspx</link><pubDate>Tue, 26 May 2009 23:42:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904848</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904848.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904848</wfw:commentRss><description>&lt;p&gt;OK, I found a post that Lex had replied to elsewhere (&lt;a title="IIS7 FTP7 Passive Mode Problem: Ignoring &amp;quot;Data Channel Port Range&amp;quot;" href="http://forums.iis.net/t/1157414.aspx"&gt;here&lt;/a&gt;) in the Forum that described the problem with FTP 7.5 not honouring the data port range set in the IIS FTP Firewall Support settings.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Apparently, you need to restart the &lt;em&gt;Microsft FTP Service&lt;/em&gt; to get it to pick up the new port range.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I did this and now the server is replying with a port in that range... but the client still isn&amp;#39;t getting the directory listing. So, back to checking the firewall settings for the Data Port range both the (Windows firewall and the Hardware firewall).&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904847.aspx</link><pubDate>Tue, 26 May 2009 23:05:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904847</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904847.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904847</wfw:commentRss><description>&lt;p&gt;Thanks for the reply Steve.&lt;/p&gt;
&lt;p&gt;And, thanks for putting my attention back on the Hardware firewall - there was indeed a problem with it&amp;#39;s settings - I only had Destination NAT rules in place and I needed to add in a couple of Source NAT rules to alter the source of the traffic to be the Firewalls LAN port IP address.&lt;/p&gt;
&lt;p&gt;Once I added these, I was able to establish the control traffic over port 21 between the internet based test client and the internal FTP server.&lt;/p&gt;
&lt;p&gt;The only problem is now in the switch to PASV mode - for some reason (and I will investigate settings on the FTP server after posting this) the server is telling the client to connect to a data port that isn&amp;#39;t in the range I specified in the IIS FTP Managment tools (and hence isn&amp;#39;t open thru the Firewall appliance).&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve included the transcripts from Wireshark session on both the client and the server below FYI:&lt;/p&gt;
&lt;p&gt;Wireshark capture on Client (Client chatter is in &lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:red;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-NZ;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;red&lt;/span&gt;, Server&amp;nbsp;chatter is&amp;nbsp;in &lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:#0070c0;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-NZ;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;blue&lt;/span&gt;):-&lt;/p&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;220 Microsoft FTP Service&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;USER *******&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;331 Password required for *******.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PASS *******&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;230 User logged in.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;OPTS UTF8 ON&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;200 OPTS UTF8 command successful - UTF8 encoding now ON.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PWD&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;257 &amp;quot;/&amp;quot; is current directory.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;TYPE I&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;200 Type set to I.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PASV&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;
&lt;p style="LINE-HEIGHT:50%;MARGIN:0cm 0cm 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="LINE-HEIGHT:50%;MARGIN:0cm 0cm 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;Wireshark capture on Server (Client chatter is in &lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:red;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-NZ;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;red&lt;/span&gt;, Server&amp;nbsp;chatter is&amp;nbsp;in &lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:#0070c0;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-NZ;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;blue&lt;/span&gt;):-&lt;/p&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;220 Microsoft FTP Service&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;USER *******&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;331 Password required for *******.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PASS *******&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="COLOR:red;"&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;230 User logged in.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;OPTS UTF8 ON&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;200 OPTS UTF8 command successful - UTF8 encoding now ON.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PWD&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;257 &amp;quot;/&amp;quot; is current directory.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;TYPE I&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;200 Type set to I.&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;PASV&lt;/font&gt;&lt;/font&gt; &lt;/span&gt;
&lt;p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="COLOR:#0070c0;"&gt;&lt;font size="3" face="Calibri"&gt;227 Entering Passive Mode (192,170,1,1,225,65).&lt;/font&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The client side times out, never apparently making the connection - and it rightly so it would appear as the port number looks to be 57665 (correct me if I calculated this wrong) which isn&amp;#39;t within the range I that I opened in the Firewall - or in the &lt;em&gt;FTP Firewall Support&lt;/em&gt; settings in IIS on the FTP server (now that&amp;#39;s a problem...).&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904736.aspx</link><pubDate>Tue, 26 May 2009 01:27:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904736</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904736.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904736</wfw:commentRss><description>&lt;p&gt;I would run wireshark on both sides to capture the traffic, 1 on the laptop and 1 on the destination server.&amp;nbsp;&amp;nbsp; For troubleshooting purposes, I would turn off windows firewall to eliminate the secondary firewall rule.&amp;nbsp;&amp;nbsp; I also double check your windows firewall rules to see if you have restricted certain ip&amp;#39;s or vlans.&amp;nbsp;&amp;nbsp;&amp;nbsp; From your description, the problem appears to be with the hardware firewall, all signes point to that since everything works internally w/o issues.&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904724.aspx</link><pubDate>Mon, 25 May 2009 21:39:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904724</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904724.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904724</wfw:commentRss><description>&lt;p&gt;Hi Lex,&lt;/p&gt;
&lt;p&gt;thanks for taking the time to reply. In reply to your question - yes, the destination addresses of the packets from the test client&amp;nbsp;are the same as that which the FTP service is bound to in IIS.&lt;/p&gt;
&lt;p&gt;The test setup is as follows:-&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Laptop Test Client (connected to WAN side of Hardware Firewall for testing):-&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Windows Server 2008 Standard&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Fixed IP Address&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Telnet client session: TELNET&amp;nbsp;&lt;em&gt;[WAN port IP&amp;nbsp;address of Firewall Appliance]&lt;/em&gt;&amp;nbsp;21&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Hardware Firewall:-&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Snapgear SME550&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;NAT rule&amp;nbsp;and matching packet filter accept/forward rule for inbound FTP traffic on port 21. Forwarding to &lt;em&gt;[Internal FTP Server IP Address, port 21]&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;NAT rule&amp;nbsp;and matching packet filter accept/forward rule for inbound FTP traffic on port range 4900-4910. Forwarding to &lt;em&gt;[Internal FTP Server IP Address, port range 4900-4910]&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Internal Web/FTP Server:-&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Windows Server 2008 Enterprise SP1, IIS 7, FTP 7.5 (Original IIS7 FTP role never installed/enabled)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Windows Firewall Rule to accept inbound TCP traffic for all ports that the &lt;em&gt;Microsoft FTP Service&lt;/em&gt; is listening on, for all profiles (Domain, Private and Public), all interface types and with a scope of any IP address for both Local and Remote addresses.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;3 websites in IIS 7, published with the FTP service, each with an FTP binding to &lt;em&gt;[Internal FTP Server IP address, port 21]&lt;/em&gt; with a Host Name set to match the public FQDN of the associated website (e.g. &amp;quot;ftp, 21, www.abc.com, &lt;em&gt;[Internal Server IP Address]&lt;/em&gt;&amp;quot;, &amp;quot;ftp, 21, www.def.com, &lt;em&gt;[Internal Server IP Address]&lt;/em&gt;&amp;quot; and &amp;quot;ftp, 21,&amp;nbsp;www.ghi.com, &lt;em&gt;[Internal Server IP Address]&lt;/em&gt;&amp;quot;)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;FTP Firewall Support settings for each site are:-&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Data Channel Port Range: &lt;em&gt;4900-4910&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;External IP Address of Firewall: &lt;em&gt;[WAN Port IP Address of Hardware Firewall Appliance]&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;Using the Telnet session on the test client Laptop with the following: TELNET&amp;nbsp;&lt;em&gt;[WAN port IP&amp;nbsp;address of Hardware Firewall Appliance]&lt;/em&gt;&amp;nbsp;21, a Wireshark capture session running on the [Internal FTP Server IP Address] shows three packets ariving with the following details:-&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Source IP Address and port: [Fixed IP Address of Laptop test client] on a random port&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Destination IP Address and port: [Internal FTP Server IP Address] on port 21&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;There are no replies to these packets and the Telnet session on the client times out.&lt;/p&gt;
&lt;p&gt;I hope this helps some. Any suggestions about where I might be going wrong?&lt;/p&gt;
&lt;p&gt;Note that there are four virtual NIC&amp;#39;s in the internal Web/FTP Server machine with the FTP/associated web site HTTP bindings attached to one of them. All the sites have Host Names set (i.e. they use host headers). The other NIC&amp;#39;s are used or other sites (SharePoint sites, Project Server PWA sites etc.)&amp;nbsp;and services on that machine.&lt;/p&gt;</description></item><item><title>Re: FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904691.aspx</link><pubDate>Mon, 25 May 2009 08:38:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904691</guid><dc:creator>lextm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904691.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904691</wfw:commentRss><description>&lt;p&gt;What destination IP address was captured by Wireshark for the FTP requests? Is it&amp;nbsp;one of&amp;nbsp;the IP addresses FTP service is monitoring?&lt;/p&gt;
&lt;p&gt;If not,&amp;nbsp;the requests&amp;nbsp;will be ignored.&lt;/p&gt;</description></item><item><title>FTP - Can access from LAN, but timeout from WAN</title><link>http://forums.iis.net/thread/1904681.aspx</link><pubDate>Mon, 25 May 2009 07:51:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904681</guid><dc:creator>NeanDuhTall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904681.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1904681</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve downloaded and set up the FTP 7.5 server software from Microsoft, on a Windows Server 2008 Enterprise SP1 machine with IIS7 (actually a Hyper-V VM). I&amp;#39;ve then published a couple of existing basic public websites using the FTP software, using the FTP&amp;nbsp;managment tools in IIS&amp;nbsp;and have opened the necessary ports to allow passive mode FTP access (port 21 for Control Traffic and a restricted port range of 4900-4910 for Data Traffic)&lt;/p&gt;
&lt;p&gt;This all works&amp;nbsp;fine from any machine on the LAN using FileZilla or even testing manually using a Telnet client.&lt;/p&gt;
&lt;p&gt;However, I am completely unable to access the FTP service from the Internet - and yes, I have opened ports 21 and 4900-4910 in our hardware firewall appliance and forwarded them to the Windows Server hosting the FTP service. The initial connection attempt simply times out with either FileZilla or using a Telnet client session.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve run diagnostic logging on&amp;nbsp;our firewall appliance (a SnapGear SME550) and can see the packets being&amp;nbsp;recieved from the test client&amp;nbsp;and then being forwarded on to the internal FTP server machine. I&amp;#39;ve also installed WireShark on the FTP server machine and can see the packets landing at the server on port 21 - but the server does NOT respond?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve enabled logging on the FTP server machine in Windows Firewall for both rejected and accepted packets, under each of the profiles (Domain, Private and Public), and interestingly enough - the packets are never logged! It&amp;#39;s like Windows Server just doesn&amp;#39;t see them! Likewise in the FTP logs - no trace can be found - which would follow as they don&amp;#39;t appear to be getting noticed, even by the firewall software? And yet WireShark clearly shows them reaching the machine.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s like the FTP server machine isn&amp;#39;t accepting any traffic that doesn&amp;#39;t originate from the local subnet!? And yet, this same machine is happily hosting HTTP and HTTPS websites that are served up on the internet and deals with internet sourced traffic for them without a hitch.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going nuts trying to figure this one. I&amp;#39;ve checked and re-checked every setting in all of the firewalls and in the FTP service/IIS.&lt;/p&gt;
&lt;p&gt;Any suggestions (please...)?&lt;/p&gt;</description></item></channel></rss>