Groups | Blog | Home
all groups > iis ftp > may 2006 >

iis ftp : FTP does not finish the transfer



Ariel
5/12/2006 7:12:01 AM
Hi everyone !! hope someone can help me with this odd problem... :-)

Server: Win 2003 with IIS6 (using its FTP server) with the Windows Firewall
enabled (FTP allowed)

When I transfer a file from my XP notebook (connected in my Company LAN),
the file is sent without problem.
Howewer, when I am connected directly to internet with my cable provider
with the same Notebook (so, same FTP client ), and I transfer the same file
to the FTP Server, the file is sent but when it finish transferring it, it
does not close the transfer. It "freezes" with a status of 100% transferred
and I got to cancel the transfer manually.

The FTP Server is outside the WAN of my company and it is connected directly
to the internet, so the only Firewall it has is the Microsoft (when I
disabled the Firewall, the transfer works well!)

I suppose, for some reason, the client waits for a success confirmation of
transfer completed which never arrives.... but I do not understand why
happens when I am connectly directly to the internet but not when I´m behind
the company firewall...

Any tips ?

Thanks in advance,

Ariel
Robin Walker [MVP]
5/12/2006 3:47:24 PM
[quoted text, click to view]

How have you configured the Windows Firewall to allow FTP? You cannot do it
by just allowing TCP port 22. You must do it by configuring an exception
for the program:

C:\WINDOWS\system32\inetserv\inetinfo.exe

I am assuming here that you have applied Service Pack 1 to Windows 2003.

--
Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Robin Walker [MVP]
5/12/2006 3:58:13 PM
[quoted text, click to view]

I meant TCP port 21 of course!

--
Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Ariel
5/12/2006 6:19:02 PM
Robin,

Thanks for your help, but unfortunately, it does not fix the problem. I
added inetinfo.exe to the exception list but it continues doing the same
thing....

SP1 is applied, of course.

Any other tip I could try??

PS: Yes, I know you meant port 21 :-)

[quoted text, click to view]
Ariel
5/25/2006 1:08:02 PM
Bernard, first of all, thanks for your help!

I think the file is not big enough (1.3Mb) to cause problems
I tried using ftp.exe and it seems does not freeze when the transfer ends
(strange!)
How do I configure the Firewall to forward ftp request??? I think I only
specified the exception list...

For example, could you tell me please how would be the correct configuration
of the Windows Firewall to work with IIS FTP server?

Thanks again.

Ariel

[quoted text, click to view]
Bernard Cheah [MVP]
5/25/2006 1:22:04 PM
how big is the file ?
have you try ftp.exe to download the file ?

do you specific the the internet connection firewall to forward ftp requests
? or just the exception list?

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Bernard Cheah [MVP]
5/26/2006 12:00:00 AM
Well, generally - if ftp.exe can download fine then IIS FTP is working fine.
For the ICF, exception is what you need to support both active and passive
mode,
As for the forwarding, it is at the advanced tab of windows firewall dialog
box.

what client ftp app you using ? you mentioned with firewall off, your app
able to download correctly?



--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Ariel
5/27/2006 3:55:01 PM
That´s what confused me.... the ftp.exe seems to work fine. I´m using Windows
Commander´s FTP, but I tried with several clients with same results (it
freezed)

If the Firewall is off, the download/upload is done without problems!

To let the IIS FTP work, I configured PORT 21 and 20 and inetinfo.exe in the
Exceptions lists and "FTP Server" service marked in Advanced Settings

What else could be?

Thanks,

Ariel

[quoted text, click to view]
Robin Walker [MVP]
5/28/2006 12:07:58 PM
[quoted text, click to view]

ftp.exe uses Port Mode FTP, whereas many other FTP clients use Passive Mode.
The fact that one works and the other does not probably indicates a firewall
configuration problem somewhere. Are you quite certain that your company
does not have a firewall of some sort between the IIS server and the
internet?

[quoted text, click to view]

There is no "forward"ing that needs to be done: you just need to have
C:\WINDOWS\system32\inetsrv\inetinfo.exe
defined in the Windows Firewall program exception list, with a "scope"
setting of "Any computer (including those in the internet)". All this is
required for Passive Mode transfers to work. Port Mode transfers (such as
those done by ftp.exe) will work with a simple Port 21 exception. The Port
21 exception is not required if you have correctly defined the Program
Exception for C:\WINDOWS\system32\inetsrv\inetinfo.exe, so try deleting the
Port 21 exception and trial ftp.exe again. If ftp.exe now does not work,
then you have not correctly defined the Program Exception for
C:\WINDOWS\system32\inetsrv\inetinfo.exe

[quoted text, click to view]

As above.

[quoted text, click to view]

In Server 2003 SP1, there is no ICF, or "internet connection firewall": it
is replaced by "Windows Firewall". And there is no "forwarding" involved,
it is just a firewall.

--
Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Bernard Cheah [MVP]
5/29/2006 12:00:00 AM
Remove the port 21,20 in the exception list, you just need to define
inetinfo.exe.
And you can unmark the 'ftp server' at advanced settings.

I don't have others ideas as this work via ftp.exe. so the suspect is the
firewall, but then why ftp.exe works?
just wondering after you have configure the above, try reboot the entire
machine then test again.


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button