Environment:
==================
Windows Server 2008 R2 / FTP
Problem/Question:
==================
Installed and configured FTP on Windows 2008 R2. It works if the Windows Firewall is disabled, however if enabled the firewall, no one could access the FTP.
Cause analysis:
==================
This issue can occur if Windows firewall has been blocked the FTP ports. Note: By default the Windows firewall will block the FTP traffic. Here, we need to manually enable the FTP ports.
Solution/Workaround:
==================
·Run the following commands on the FTP server to open the related FTP ports:
·
Using Windows Firewall with non-secure FTP traffic
=================================== netsh advfirewall firewall add rule name="FTP (non-SSL)" action=allow protocol=TCP dir=in localport=21 netsh advfirewall set global StatefulFtp enable
Using Windows Firewall with secure FTP over SSL (FTPS) traffic
=================================== netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in netsh advfirewall set global StatefulFtp disable
References:
==================
How to Configure Windows Firewall for a Passive Mode FTP Server
http://technet.microsoft.com/hu-hu/library/dd421710(WS.10).aspx