3

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 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).

What I've done:

1) Configured IIS on the VM with an FTP site

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) Set up endpoints for FTP control (TCP/21), FTP data (TCP/20), and FTP dynamic ports (7000 through 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) Restarted the FTP server (net stop ftpsvc and net start ftpsvc)

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

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.

4

3 に答える 3

2

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

于 2013-06-23T18:31:53.160 に答える
1

Powershell コマンドを使用せずに、パッシブ FTP を Azure VM で動作させることができました。次の手順に従ってください: http://blogs.msdn.com/b/wats/archive/2013/12/13/setting-up-a-passive-ftp-server-in-windows-azure-vm.aspx

上記の記事には、Azure VM で FTP を設定するために必要なすべての手順が含まれています。

お役に立てれば!

于 2014-08-15T06:30:10.637 に答える
0

Azure VM エンドポイントのタイムアウトは 4 分です。FTP の場合、パッシブ データ転送に 4 分以上かかると、メイン接続 (ポート 21) がタイムアウトになります。

次の 2 つのオプションがあります。

1. VM エンドポイントのタイムアウトを最大 30 分に設定できます。

これを行う Powershell コマンドは次のとおりです。

> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -Name "MyEndpoint" -IdleTimeoutInMinutes 30 | Update-AzureVM

詳細はこちら

2. ILIP (インスタンス レベル IP) を作成する

ILIP を作成して、VM Web サービス エンドポイント レイヤーをバイパスできます。これを行う PowerShell コマンドは次のとおりです。

Get-AzureVM -ServiceName “MyService” -Name “MyVM” | Set-AzurePublicIP -PublicIPName "MyNewEndpoint" | Update-AzureVM

詳細はこちら

于 2015-11-17T21:07:52.963 に答える