I have a Windows Server 2012 R2 acting as an FTP client which needs to retrieve some files through FTP from a different device. If I turn off the firewall completely, the transfer is successful. With the firewall up, the process goes through but the file fails to be saved on the Windows server.
I have followed the Microsoft instructions on How to Configure Windows Firewall for a Passive Mode FTP Server, but this still resulted in failure.
I removed the previous firewall rule and replaced it with this one:
New-NetFirewallRule -DisplayName "FTP Service In" -Direction Inbound -Protocol TCP –Enabled True –Action Allow -Profile Any -Service ftpsvc -LocalPort Any -EdgeTraversalPolicy Allow
I also tried to only affect ports 20 and 21. All with the same result.
Any suggestions on how to properly setup the firewall to allow FTP traffic to download files?