服务器发送具有不可路由地址的被动回复。 使用服务器地址,而不是IIS 8.5

我在Windows Server 2012 R2机器上的IIS 8.5中设置了一个FTP服务器。

使用FileZilla时,我尝试连接到本地IP(10.0.0.4)与我的用户名和密码在端口21,它会连接就好了,但是当我尝试连接外部IP我得到这个错误

服务器发送具有不可路由地址的被动回复。 改用服务器地址

这里是完整的日志

Status: Disconnected from server Status: Connecting to 191.23x.xx.111:21... Status: Connection established, waiting for welcome message... Status: Insecure server, it does not support FTP over TLS. Status: Connected Status: Retrieving directory listing... Status: Server sent passive reply with unroutable address. Using server address instead. Command: LIST Response: 150 Opening BINARY mode data connection. Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing Status: Disconnected from server Status: Connecting to 191.23x.xx.111:21... Status: Connection established, waiting for welcome message... Status: Insecure server, it does not support FTP over TLS. Status: Connected Status: Retrieving directory listing... Status: Server sent passive reply with unroutable address. Using server address instead. Command: LIST Response: 150 Opening BINARY mode data connection. Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing 

它挂在哪里

服务器发送具有不可路由地址的被动回复。 改用服务器地址。

在失败之前有一段时间

您需要将服务器的外部IP设置为被动模式。

在IIS中:(步骤5为被动模式,其他为主动模式)

如何configurationFTP服务的全局防火墙设置

1.打开Internet信息服务(IIS)pipe理器:

•如果您使用Windows Server 2012或Windows Server 2012 R2:

•在任务栏上,单击“服务器pipe理器”,单击“工具”,然后单击“Internet信息服务(IIS)pipe理器”。

2.在“连接”窗格中,单击服务器名称。

3.在“主页”窗格中,双击“FTP防火墙支持”function。

4.在“数据通道端口范围”框中,使用以下选项之一input被动数据通道连接的端口范围:

•端口范围使用[低端口] – [高端口],每个端口必须介于1025和65535之间。例如,5000-6000。

•使用“0-0”将FTP服务器configuration为使用Windows TCP / IP临时端口范围。

5.在“防火墙的外部IP地址”框中,键入防火墙的面向Internet的networking适配器的IPv4地址。

6.在“操作”窗格中,单击“应用”。

如果不存在,则需要激活FTP扩展。

Windows Server 2012或Windows Server 2012 R2

1.在任务栏上,单击“服务器pipe理器”。

2.在服务器pipe理器中,单击pipe理菜单,然后单击添加angular色和function。

3.在“添加angular色和function”向导中,单击“下一步”。 select安装types,然后单击下一步。 select目标服务器,然后单击下一步。

4.在“服务器angular色”页面上,展开“Web服务器(IIS)”,然后select“FTP服务器”。

注意:要支持FTP服务的ASP.Membership身份validation或IISpipe理器身份validation,除FTP服务外,还需要selectFTP可扩展性。

5.单击下一步,然后在selectfunction页面上,再次单击下一步。

6.在确认安装select页面上,单击安装。

7.在结果页面上,单击closures。