Windows 2003 FTP service and Windows Firewall on Server 2003

  • Thread starter Thread starter Viktor Jevdokimov
  • Start date Start date
V

Viktor Jevdokimov

Hi all,

Environment:
- Windws Server 2003 R2 Standard Edition Service Pack 2
- IIS with FTP service
- Windows Firewall enabled, TCP ports 21 and 20 are enabled both on
exceptions list and on connection.

Problem: "Connection closed by remote host." right after user name is
entered when connecting from outside.

When testing locally on the server or when Windows Firewall is disabled -
everything is fine, no problems. When Firewall is enabled, connection from
outside just drops right after user name is entered.

IIS log file shows 421 FTP status and 121 win32 status.

How to configure Windows Firewall properly for FTP service to work from
outside?

Thanks in advance,
Viktor
 
"Viktor Jevdokimov" <viktor@baltsoft.lt> wrote in message
news:eJIdjqfyHHA.2224@TK2MSFTNGP02.phx.gbl...
> Hi all,
>
> Environment:
> - Windws Server 2003 R2 Standard Edition Service Pack 2
> - IIS with FTP service
> - Windows Firewall enabled, TCP ports 21 and 20 are enabled both on
> exceptions list and on connection.
>
> Problem: "Connection closed by remote host." right after user name is
> entered when connecting from outside.
>
> When testing locally on the server or when Windows Firewall is disabled -
> everything is fine, no problems. When Firewall is enabled, connection from
> outside just drops right after user name is entered.
>
> IIS log file shows 421 FTP status and 121 win32 status.
>
> How to configure Windows Firewall properly for FTP service to work from
> outside?
>
> Thanks in advance,
> Viktor
>


You may have to run the ftp client in pasv mode:

http://support.microsoft.com/kb/323446
 
Passive mode or active - no difference, since connection is closed before
asking for a password.

"Greg O" <none@all.com> wrote in message
news:ONjjXHgyHHA.1208@TK2MSFTNGP05.phx.gbl...
>
> "Viktor Jevdokimov" <viktor@baltsoft.lt> wrote in message
> news:eJIdjqfyHHA.2224@TK2MSFTNGP02.phx.gbl...
>> Hi all,
>>
>> Environment:
>> - Windws Server 2003 R2 Standard Edition Service Pack 2
>> - IIS with FTP service
>> - Windows Firewall enabled, TCP ports 21 and 20 are enabled both on
>> exceptions list and on connection.
>>
>> Problem: "Connection closed by remote host." right after user name is
>> entered when connecting from outside.
>>
>> When testing locally on the server or when Windows Firewall is disabled -
>> everything is fine, no problems. When Firewall is enabled, connection
>> from outside just drops right after user name is entered.
>>
>> IIS log file shows 421 FTP status and 121 win32 status.
>>
>> How to configure Windows Firewall properly for FTP service to work from
>> outside?
>>
>> Thanks in advance,
>> Viktor
>>

>
> You may have to run the ftp client in pasv mode:
>
> http://support.microsoft.com/kb/323446
>
>
>
 
Problem solved:

1. Uncheck "FTP Server" in Windows Firewall Extended tab for every location
2. Add 21 port to exceptions


"Viktor Jevdokimov" <viktor@baltsoft.lt> wrote in message
news:eJIdjqfyHHA.2224@TK2MSFTNGP02.phx.gbl...
> Hi all,
>
> Environment:
> - Windws Server 2003 R2 Standard Edition Service Pack 2
> - IIS with FTP service
> - Windows Firewall enabled, TCP ports 21 and 20 are enabled both on
> exceptions list and on connection.
>
> Problem: "Connection closed by remote host." right after user name is
> entered when connecting from outside.
>
> When testing locally on the server or when Windows Firewall is disabled -
> everything is fine, no problems. When Firewall is enabled, connection from
> outside just drops right after user name is entered.
>
> IIS log file shows 421 FTP status and 121 win32 status.
>
> How to configure Windows Firewall properly for FTP service to work from
> outside?
>
> Thanks in advance,
> Viktor
>
 
Back
Top