问题描述
我试过在一些网站(的和的,和Passive FTP上的Windows Azure虚拟机),它不会起作用。
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.
从VM FTP主动和被动两种工作本身。来自外界的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),其配置IIS虚拟机上使用的FTP站点
1) Configured IIS on the VM with an FTP site
2)设置FTP防火墙支持IP地址的Azure虚拟机实例的公网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%\\ SYSTEM32 \\ INETSRV \\ appcmd设置配置/section:system.ftpServer/firewallSupport / lowDataChannelPort:7000 / highDataChannelPort:7003)
4) Used appcmd.exe to set the port range for FTP (i.e. %windir%\system32\inetsrv\appcmd set config /section:system.ftpServer/firewallSupport /lowDataChannelPort:7000 /highDataChannelPort:7003)
5)重新启动FTP服务器(净停止FTPSVC和NET START FTPSVC)
5) Restarted the FTP server (net stop ftpsvc and net start ftpsvc)
6)试图与防火墙的启用和禁用的(的netsh advfirewall的设置全局StatefulFtp使能)
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
这篇关于VM在Azure上 - 被动FTP无法工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!