all groups > iis ftp > june 2006 >
You're in the

iis ftp

group:

Cannot access redirected FTP in active mode.


Cannot access redirected FTP in active mode. DavidM
6/7/2006 6:14:01 AM
iis ftp:
I’m trying to move my publicly addressed FTP site from Windows 2000 / IIS 5
to Windows Server 2003 / IIS 6.0 and have encountered a problem with active
mode transfers.

The problem only occurs on Windows Server 2003 / IIS 6.0 and only occurs
while using active mode FTP from a private address (LAN) while my anti-virus
is redirecting to port 2100.

My anti-virus is set to use FTP service port 21 and redirect to (FTP proxy)
port 2100. In IIS the default FTP site is set to use TCP port 2100.

I can access and make transfers to and from the site using Internet Explorer
or other FTP software in passive mode with no problems.

I can access and make transfers to and from the site using FTP.exe or other
FTP software in active mode from any publicly addressed pc (WAN to WAN) with
no problems.

The problem only seems to occur when trying to access (via active mode) the
publicly addressed FTP site from a private (nat) address (LAN to WAN) while
the anti-virus is redirecting to port 2100.

While Anti-virus is redirecting to port 2100:
Active mode FTP from WAN to WAN works.
Active mode FTP from LAN to WAN does not work.

Windows firewall is turned off.

This problem does not occur in Windows 2000 / IIS 5.

What do I need to do to fix this?
RE: Cannot access redirected FTP in active mode. wjzhang NO[at]SPAM online.microsoft.com (
6/8/2006 12:00:00 AM
Hi David,

Acorrding to your description, looks like the problem is either on your
private network or firewall setting on those clients but not on the IIS FTP
server. As you know, in FTP active mode, data connection is established
from FTP server(default port is 20) -> client . So this is usually
impacted/blocked by a client side firewall. All the details is documented
in the following article:

Information About the IIS File Transmission Protocol (FTP) Service
http://support.microsoft.com/?id=283679

I'd like to suggest you temporarily shutdown the firewall on the
problematic clients or between server and the private networking to narrow
down the root cause.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.


RE: Cannot access redirected FTP in active mode. DavidM
6/8/2006 5:26:02 AM
If its a network or firewall problem then why does it not affect Windows 2000
/ IIS 5? I have 2 servers sitting side by side - one is Windows 2000 / IIS 5
and the other is Windows 2003 /IIS 6. The IIS 5 machine does not exhibit the
problem. As to testing for the for the firewall, I have tried to access the
servers from my home pc, I have a private address (192.168.0.1) but no
firewall. I can access the IIS 5 machine with no problem, but cannot access
the IIS 6 machine.

If you can email me or tell me how to get it to you, I will give you the IPs
of both servers so that you can test from your end. Access from a any public
address works. Access from any private address does not work.

[quoted text, click to view]
Re: Cannot access redirected FTP in active mode. DavidM
6/8/2006 6:34:02 AM
Hmmm. Good question on the anti-virus - let me get with Trendmicro and I'll
get back to you on that.

On the Firewall, its not currently running on the server. I turned it off
to eliminate it as the problem. It doesent seem to matter whether or not its
running on the workstation. A workstation with a public address can access
the FTP site in active mode with the Windows firewall on or off. A
workstation with a private address cannot.

[quoted text, click to view]
Re: Cannot access redirected FTP in active mode. DavidM
6/8/2006 7:14:02 AM
To recap: I have been hosting an FTP site on a Windows 2000 / IIS 5 server
for the past five years. That server is running Trendmicro antivirus
configured to "listen" on port 21 and redirecting to IIS port 2100. I had
always assumed that it was also scanning data comming through port 20 and
forwarding the data through another port (2099 ?) to the FTP folders on the
server. I'm now trying to find out from Trend if this assumption is correct.
In any case, various clients have been able to access the site in both
active and passive mode for the past 5 years.

I have now set a Windows 2003 / IIS 6 server configured the same as the
Windows 2000 / IIS 5 server. Clients with a private address cannot access
the site in active mode.

What is different between IIS 5 and IIS 6 in this reguard?

[quoted text, click to view]
Re: Cannot access redirected FTP in active mode. DavidM
6/8/2006 7:27:01 AM
Robin,
Let me apologize. There is an additional item that I just now tested for
and got unexpected results. I'm hosting a web site (http) on the same server
(the Windows 2003 /IIS6 server) on another public address. Both addresses
are bound to the same NIC. When I removed the second address (the one for
the WWW site) the FTP problem went away. Now I really don't know whats
happening.

[quoted text, click to view]
Re: Cannot access redirected FTP in active mode. DavidM
6/8/2006 7:49:02 AM
I now have the WWW and FTP set to the same address and the problem appears to
be be resolved. I'm still not sure why there was a problem using multiple
addresses, but since I have no compelling reason to keep them separate maybe
this is the solution. I've still got some additional conditions to test, and
I'm waiting on a reply from Trendmicro.

[quoted text, click to view]
Re: Cannot access redirected FTP in active mode. Robin Walker [MVP]
6/8/2006 2:04:27 PM
[quoted text, click to view]

What is the point of this? No data travels on the command stream to port
21, so what is the "anti-virus" actually doing?

[quoted text, click to view]

Do you mean Windows Firewall on the FTP LAN client, or Windows Firewall on
the Server?

What Firewall settings do you have on the server?

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

Re: Cannot access redirected FTP in active mode. Robin Walker [MVP]
6/8/2006 2:39:06 PM
[quoted text, click to view]

For an FTP client behind a NAT router, Active Mode will only work by virtue
of special action being taken inside the NAT router: special Application
Layer Gateway (ALG) code needs to be able to recognise an active mode FTP
transfer being negotiated on the FTP command stream, and specially arrange
to allow the Active Mode TCP connection back from the server through the NAT
back to the FTP client. Such ALG code needs to be able to recognise an FTP
command stream as being such. The usual rule is that a TCP connection to
remote port 21 is taken to be an FTP command stream.

This rule means that for most NAT boxes, Active FTP does not work when the
FTP command stream is connected from the client to a non-standard server
port (anything other than 21). This is regardless of type of server or
anti-virus.

It isn't clear from your report whether you are trialling your IIS 6 server
by connecting to port 21. If you aren't, then Active Mode FTP will not work
through a client-end NAT router.

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

Re: Cannot access redirected FTP in active mode. Robin Walker [MVP]
6/8/2006 3:55:53 PM
[quoted text, click to view]

That makes sense. No doubt the "Active Mode" data connection attempts were
marked as emanating from the "other" public address on the NIC, and thus
were being dropped by the client-side NAT box, as they didn't match the
rules for a reverse connection attempt from the FTP server.

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

Re: Cannot access redirected FTP in active mode. engfelt NO[at]SPAM gmail.com
6/12/2006 1:14:27 PM
Have you forwarded Port 20-21 and the passive mode ports:
For Windows 2003 Server

a) To Enable Direct Metabase Edit
1. Open the IIS Microsoft Management Console (MMC).
2. Right-click on the Local Computer node.
3. Select Properties.
4. Make sure the Enable Direct Metabase Edit checkbox is checked.

b) Configure PassivePortRange via ADSUTIL script
1. Click Start, click Run, type cmd, and then click OK.
2. Type cd Inetpub\AdminScripts and then press ENTER.
3. Type the following command from a command prompt.
adsutil.vbs set /MSFTPSVC/PassivePortRange "5500-5700"
4. Restart the FTP service.

http://support.microsoft.com/kb/555022/en-us

Best regards
Niklas Engfelt

Robin Walker [MVP] skrev:

[quoted text, click to view]
AddThis Social Bookmark Button