本文介绍了Azure 上的 VM - 被动 FTP 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了许多网站上的建议(http://blogs.thesitedoctor.co.uk/tim/Trackback.aspx?guid=e81a4682-0851-490b-a3d2-adf254a701e7http://www.itq.nl/blogs/post/Walkthrough-Hosting-FTP-on-IIS-75-in-Windows-Azure-VM.aspxWindows Azure 虚拟机上的被动 FTP),它不会工作.

I've tried the suggestions on a number of sites (http://blogs.thesitedoctor.co.uk/tim/Trackback.aspx?guid=e81a4682-0851-490b-a3d2-adf254a701e7 and http://www.itq.nl/blogs/post/Walkthrough-Hosting-FTP-on-IIS-75-in-Windows-Azure-VM.aspx, and Passive FTP on Windows Azure Virtual Machine) and it won't work.

FTP 主动和被动都从 VM 到自身工作.来自外部世界的 FTP 活动作品.FTP 被动失败,服务器返回550 网络连接已被本地系统中止"(此消息在 SYN 数据包发送到动态端口之一后立即在控制通道/端口 21 上返回).

FTP active and passive both work from the VM to itself. FTP active works from the outside world. FTP passive fails with the server responding back with "550 The network connection was aborted by the local system" (this message returns on the control channel/port 21 immediately after the SYN packet is sent to one of the dynamic ports).

我做了什么:

1) 在带有 FTP 站点的 VM 上配置 IIS

1) Configured IIS on the VM with an FTP site

2) 将 FTP 防火墙支持 IP 地址设置为 Azure VM 实例的公共 IP 地址(为了它的价值,我也尝试过将此字段留空并尝试使用私有 IP 地址,它们都不起作用)

2) Set the FTP firewall support IP address to the public IP address of the Azure VM instance (for what it's worth, I've also tried with this field empty and tried with the private IP address, none of them work)

3) 为 FTP 控制 (TCP/21)、FTP 数据 (TCP/20) 和 FTP 动态端口(7000 到 7003)设置端点

3) Set up endpoints for FTP control (TCP/21), FTP data (TCP/20), and FTP dynamic ports (7000 through 7003)

4) 使用 appcmd.exe 设置 FTP 的端口范围(即 %windir%system32inetsrvappcmd set config/section:system.ftpServer/firewallSupport/lowDataChannelPort:7000/highDataChannelPort:7003)

4) Used appcmd.exe to set the port range for FTP (i.e. %windir%system32inetsrvappcmd set config /section:system.ftpServer/firewallSupport /lowDataChannelPort:7000 /highDataChannelPort:7003)

5) 重新启动 FTP 服务器(net stop ftpsvc 和 net start ftpsvc)

5) Restarted the FTP server (net stop ftpsvc and net start ftpsvc)

6) 尝试启用和禁用防火墙(netsh advfirewall set global StatefulFtp enable)

6) Tried with the firewall both enabled and disabled (netsh advfirewall set global StatefulFtp enable)

有什么想法吗?我已通过 Wireshark 验证客户端正在尝试使用动态端口,并且当我在本地尝试时正在使用动态端口.

Any ideas? I've verified with Wireshark that the client is trying to use the dynamic port, and that the dynamic ports are being used when I try locally.

推荐答案

在 MSDN 论坛上收到了答案.显然管理控制台存在问题,您必须使用 Azure Powershell:http://social.msdn.microsoft.com/Forums/windowsazure/en-US/8f697f17-72b7-46f7-8c97-398b91190a2f/server-2012-vm-on-azure-passive-ftp-wont-work

Received an answer on MSDN forums. Apparently there is an issue with the management console and you have to use Azure Powershell: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/8f697f17-72b7-46f7-8c97-398b91190a2f/server-2012-vm-on-azure-passive-ftp-wont-work

这篇关于Azure 上的 VM - 被动 FTP 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 10:55
查看更多