<?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>Publishing</title><link>http://forums.iis.net/1033.aspx</link><description>A forum to discuss questions about FrontPage Server Extensions, FTP, and other publishing methods available in the IIS platform</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>FTP passive mode doesn't work externally because passing internal IP</title><link>http://forums.iis.net/thread/1901713.aspx</link><pubDate>Fri, 24 Apr 2009 02:38:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901713</guid><dc:creator>wraptur</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901713.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1901713</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I just posted in another area of this forum (&lt;a href="http://forums.iis.net/p/1157128/1901692.aspx#1901692"&gt;http://forums.iis.net/p/1157128/1901692.aspx#1901692&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;but I think this is the right place to post judging by I have a similar problem.&lt;/p&gt;&lt;p&gt;I have verified it is using the right ports and that the firewall is allowing those ports, internally passive mode works but externally login works but as soon as I do a dir/ls and it tries to go to passive mode the conneciton dies. It looks like iis 6 is sending the internal ip which would of course not route externally.&amp;nbsp; I have tried adding the external IP to the nic as a secondary ip and setting iis 6 settings for the ftp site to the external ip hoping it would pass that in the return command but no dice.&amp;nbsp; Is there not a place to enter this reply to IP, or masquerade ip, like iis 7 firewall external ip support?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889592.aspx</link><pubDate>Sat, 10 Jan 2009 11:02:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889592</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889592.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889592</wfw:commentRss><description>&lt;p&gt;I did&amp;nbsp; netstat -an (so it didn&amp;#39;t resolve addresses) and there was no listener on the specified port, until I turned off the firewall. That is the problem as I now see it. With the firewall on the listener fails to start.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889535.aspx</link><pubDate>Fri, 09 Jan 2009 17:51:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889535</guid><dc:creator>JaroDunajsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889535.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889535</wfw:commentRss><description>&lt;p&gt;Regarding the netstat command. You have to use &amp;quot;-a&amp;quot; switch to see the listeners.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;StatefulFtp with WIndows Firewall would allow you to automatically open ports needed for the passive connections. So they would do packet inspection. But I don&amp;#39;t think that Windows Firewall is doing rewriting of the IP addresses from private to public.&lt;/p&gt;
&lt;p&gt;First of all lets see what &amp;quot;netstat -a&amp;quot; command reports after the &amp;quot;literal PASV&amp;quot; sent from client. That should move us one step forward&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889485.aspx</link><pubDate>Fri, 09 Jan 2009 09:52:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889485</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889485.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889485</wfw:commentRss><description>&lt;p&gt;I have now found the reason, but still need a solution!!&lt;/p&gt;
&lt;p&gt;The server has Windows Firewall enabled, but with the FTP Server allowed access using the Advanced Firewall Settings and allowing FTP server through. When I turn off the firewall, the FTP server behaves normally. I have tried changing the IP address of the listening server as defined in the firewall settings, and it makes no difference. It seems that the only way for it to work correctly is without the Windows Firewall enabled, which seems absurd.&lt;/p&gt;
&lt;p&gt;Has anyone any idea how to make the firewall behave correctly?&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889483.aspx</link><pubDate>Fri, 09 Jan 2009 09:35:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889483</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889483.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889483</wfw:commentRss><description>&lt;p&gt;This is getting more bizarre. I see what you are asking so have done some tests.&lt;/p&gt;
&lt;p&gt;When I make the initial FTP connection the netstat looks like this&lt;/p&gt;
&lt;p&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1:1034&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:39515&amp;nbsp;&amp;nbsp; ESTABLISHED&lt;br /&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 213.*.*.220:21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:11604&amp;nbsp;&amp;nbsp; ESTABLISHED&lt;/p&gt;
&lt;p&gt;Now I actually do something on the connection (in active mode) and get this&lt;/p&gt;
&lt;p&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1:1034&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:39515&amp;nbsp;&amp;nbsp; ESTABLISHED&lt;br /&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 213.*.*.220:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:39530&amp;nbsp;&amp;nbsp; TIME_WAIT&lt;br /&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 213.*.*.220:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:39535&amp;nbsp;&amp;nbsp; TIME_WAIT&lt;br /&gt;&amp;nbsp; TCP&amp;nbsp;&amp;nbsp;&amp;nbsp; 213.*.*5.220:21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217.*.103.170:11604&amp;nbsp;&amp;nbsp; ESTABLISHED&lt;/p&gt;
&lt;p&gt;As expected port 20 is opened.&lt;/p&gt;
&lt;p&gt;When I then use the literal pasv command I see nothing else at all. There certainly is no listener on the port I get from the pasv command (it should have been 5033), and the list above still stands. We may be getting somewhere here, as the pasv command does not appear to be changing to passive mode at all. From the command line FTP I can still transfer files, but maybe it isn&amp;#39;t using passive mode to do so, whereas IE is trying to but the server isn&amp;#39;t listening.&lt;/p&gt;
&lt;p&gt;I tried this on another server and the listener starts up on its IP address using the port as expected. I&amp;#39;m very confused but feel something is not right on this server.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889481.aspx</link><pubDate>Fri, 09 Jan 2009 08:44:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889481</guid><dc:creator>JaroDunajsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889481.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889481</wfw:commentRss><description>&lt;p&gt;I didn&amp;#39;t make myself clear. I wanted to know the following&lt;br /&gt;After you send PASV command from &lt;a&gt;ftp.exe&lt;/a&gt; (literal PASV) then server will setup 1 listening port to accept data connection for the upcoming transfer. If you take the 5th parameter from the PASV response , multiply it by 256 and add &amp;nbsp;6th parameter, then you should get the listening port value on which the FTP server should be listening for some time to accept the&amp;nbsp;passive data connection. I wanted to know what local IP would be used for that listening endpoint.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889480.aspx</link><pubDate>Fri, 09 Jan 2009 08:35:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889480</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889480.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889480</wfw:commentRss><description>&lt;p&gt;No, netstat just shows the 213 address as listening on port 21.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m obviously not the only one who is baffled then!&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889473.aspx</link><pubDate>Fri, 09 Jan 2009 06:57:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889473</guid><dc:creator>JaroDunajsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889473.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889473</wfw:commentRss><description>&lt;p&gt;The entry reporting that file was sent references control channel. That&amp;#39;s why the address is 213.*.*.220.&lt;/p&gt;
&lt;p&gt;And if you run&lt;br /&gt;&amp;nbsp;netstat -a&lt;/p&gt;
&lt;p&gt;from command line, you should see the listening endpoint. Does that also show that FTP is listening on 94.*.*.* for the PASV connection?&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889385.aspx</link><pubDate>Thu, 08 Jan 2009 08:34:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889385</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889385.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889385</wfw:commentRss><description>&lt;p&gt;Here is a segment from the log file after enabling server ip logging:&lt;/p&gt;
&lt;p&gt;#Fields: time c-ip s-ip cs-method cs-uri-stem sc-status sc-win32-status &lt;br /&gt;08:28:46 82.34.95.232 &lt;strong&gt;213.*.*.220&lt;/strong&gt; [421]USER&amp;nbsp;XXX 331 0&lt;br /&gt;08:28:48 82.34.95.232 &lt;strong&gt;213.*.*.220&lt;/strong&gt; [421]PASS - 230 0&lt;br /&gt;08:28:52 82.34.95.232 &lt;strong&gt;213.*.*.220&lt;/strong&gt; [421]QUIT - 226 0&lt;/p&gt;
&lt;p&gt;entered passive mode here...&lt;/p&gt;
&lt;p&gt;08:32:01 81.149.154.29 &lt;strong&gt;213.*.*.220&lt;/strong&gt; [423]sent /ftproot.txt 226 0&lt;/p&gt;
&lt;p&gt;As you can see it shows the 213 address. However, when I move to passive mode it actually uses the 94 address, even though the log shows that the file was sent from the 213 address.&lt;/p&gt;
&lt;p&gt;It is driving me crazy.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889372.aspx</link><pubDate>Thu, 08 Jan 2009 07:07:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889372</guid><dc:creator>JaroDunajsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889372.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889372</wfw:commentRss><description>&lt;p&gt;What is the actual Server IP address logged in FTP log file for control connection? It is not logged by default, but you could enable it in UI.&amp;nbsp;Does it show up as 213.*&amp;nbsp;&lt;br /&gt;So your site is only setup with :213.X.X.X:21 binding?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have IIS6 server with multiple IP addresses handy to test but I quickly scanned the code and it is using the control channel local address to setup the listener.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889246.aspx</link><pubDate>Wed, 07 Jan 2009 08:35:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889246</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889246.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889246</wfw:commentRss><description>&lt;p&gt;We are using IIS 6 on Windows 2003 Server. This is a transcript of an FTP session which shows the session connects to the 213 address OK, but as soon as I switch to passive mode, the 94 address opens the session. This doesn&amp;#39;t get back to a client behind a firewall.&lt;/p&gt;
&lt;p&gt;C:\&amp;gt;ftp 213.***.***.220&lt;br /&gt;Connected to 213.***.***.220.&lt;br /&gt;220-Microsoft FTP Service&lt;br /&gt;User (213.***.***.220:(none)): XXX&lt;br /&gt;331 Password required for XXX.&lt;br /&gt;Password:&lt;br /&gt;230 User&amp;nbsp;XXX logged in.&lt;br /&gt;ftp&amp;gt; literal pasv&lt;br /&gt;227 Entering Passive Mode (94,**,***,78,19,169).&lt;br /&gt;ftp&amp;gt; quit&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;</description></item><item><title>Re: FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889177.aspx</link><pubDate>Tue, 06 Jan 2009 18:09:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889177</guid><dc:creator>JaroDunajsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889177.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889177</wfw:commentRss><description>&lt;p&gt;Are you saying that the IP address returned in response to PASV command is different from the IP address of control connection? What is the IIS version you are using?&lt;/p&gt;</description></item><item><title>FTP bind to one IP address</title><link>http://forums.iis.net/thread/1889174.aspx</link><pubDate>Tue, 06 Jan 2009 17:51:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889174</guid><dc:creator>imprezacs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1889174.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1033&amp;PostID=1889174</wfw:commentRss><description>&lt;p&gt;I have a server with 5 IP addresses and have FTP binding to one of them. This all works fine except when a user connects using passive FTP. The server sends a passive connection from the server&amp;#39;s default IP address rather than the FTP address, so it doesn&amp;#39;t get through the client firewall.&lt;/p&gt;
&lt;p&gt;How can I change the default address used for passive connections?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Stewart&lt;/p&gt;</description></item></channel></rss>