在Windows Server 2003上设置被动FTP(IIS6)

时间:2022-06-01 18:04:37

I am having trouble setting up passive FTP on IIS 6. I used this instruction: http://www.velikan.net/iis-passive-ftp/

我在IIS 6上设置被动FTP时遇到问题。我使用了这条指令:http://www.velikan.net/iis-passive-ftp/

When I tried to upload a file through the FTP, I got the error:

当我尝试通过FTP上传文件时,我收到错误:

425 Can't open data connection. : /index.html

The interesting thing is that from the server, I can see the index.html file is already created but the file size is set to 0.

有趣的是,从服务器,我可以看到index.html文件已经创建但文件大小设置为0。

I am using the FireFTP client. I opened the FTP passive ports for 1024-1048.

我正在使用FireFTP客户端。我打开了FTP被动端口1024-1048。

Any ideas? Thanks!

有任何想法吗?谢谢!

2 个解决方案

#1


Have you set the passive port range and opened the ports on the server and any intermediate firewall? (allowing connections on those ports from client to server)

您是否设置了被动端口范围并打开了服务器和任何中间防火墙上的端口? (允许从客户端到服务器的那些端口上的连接)

Have you allowed the ports/application in your local firewall? (allowing connections outwards)

您是否允许本地防火墙中的端口/应用程序? (允许向外连接)

In the FTP client log does it say PASV at some point?

在FTP客户端日志中它是否在某个时候说PASV?

The command to create the file is sent on the port 21 connection, the additional port is the one for data. So creating a 0kb file just shows that it is not working.

创建文件的命令在端口21连接上发送,附加端口是数据的端口。因此,创建一个0kb文件只是表明它无法正常工作。

#2


Few things to check-

几件事情无法检查 -

  1. Make sure the client is making PASV connections. Check the ftp client logs to see if is sending PASV command before retrieving any data.
  2. 确保客户端正在进行PASV连接。在检索任何数据之前,请检查ftp客户端日志以查看是否正在发送PASV命令。

  3. FTP passive ports are NOT 1024-1048, the server randomly picks any ports above 1024, as far as i know.
  4. FTP被动端口不是1024-1048,据我所知,服务器随机选择1024以上的任何端口。

#1


Have you set the passive port range and opened the ports on the server and any intermediate firewall? (allowing connections on those ports from client to server)

您是否设置了被动端口范围并打开了服务器和任何中间防火墙上的端口? (允许从客户端到服务器的那些端口上的连接)

Have you allowed the ports/application in your local firewall? (allowing connections outwards)

您是否允许本地防火墙中的端口/应用程序? (允许向外连接)

In the FTP client log does it say PASV at some point?

在FTP客户端日志中它是否在某个时候说PASV?

The command to create the file is sent on the port 21 connection, the additional port is the one for data. So creating a 0kb file just shows that it is not working.

创建文件的命令在端口21连接上发送,附加端口是数据的端口。因此,创建一个0kb文件只是表明它无法正常工作。

#2


Few things to check-

几件事情无法检查 -

  1. Make sure the client is making PASV connections. Check the ftp client logs to see if is sending PASV command before retrieving any data.
  2. 确保客户端正在进行PASV连接。在检索任何数据之前,请检查ftp客户端日志以查看是否正在发送PASV命令。

  3. FTP passive ports are NOT 1024-1048, the server randomly picks any ports above 1024, as far as i know.
  4. FTP被动端口不是1024-1048,据我所知,服务器随机选择1024以上的任何端口。