Cannot list directory on IIS FTP server on Azure, even after configuring Azure inbound rules and Windows firewall

后端 未结 3 990
猫巷女王i
猫巷女王i 2021-01-14 19:03

I\'am running Windows Server 2012 in Azure, and I\'ve configured the FTP server in IIS. When I try to connect the server, it accepts the username and password and log me in

相关标签:
3条回答
  • 2021-01-14 19:13

    The issue was with Azure network NSG. you need to enable the port range on which data is getting transferred.

    Added new rule in NSG to open this port range and it worked.

    0 讨论(0)
  • 2021-01-14 19:16

    It is usually necessary to restart the Microsoft FTP service after enabling the FTP server rules in Windows firewall to have the change take an effect.

    Or restarting a whole machine.

    See my guide to Installing an FTP Server on Windows using IIS.

    0 讨论(0)
  • 2021-01-14 19:17

    In Azure, we should deploy the passive mode FTP, we should add data channel ports range in FTP Firewall Support, then add those ports to NSG and windows firewall inbound rules.

    By the way, although the windows firewall seems to allow all traffic that’s required, we also need to enable stateful FTP filtering on the firewall:

    netsh advfirewall set global StatefulFtp enable
    

    Then restart the FTP windows service and we should be up and running:

    net stop ftpsvc
    net start ftpsvc
    

    Here is a similar case, same error as you, please refer to it.

    Check which port does the FTP site listen on:

    0 讨论(0)
提交回复
热议问题