How to Enable FTP on IIS7 / Windows Server 2008

I’m writing this here because this information is hard to find, searching for related keywords will get you a lot of incorrect answers, I hope this post will save someone (maybe even me) time in the future.

Windows Firewall and non-secure FTP traffic

Windows firewall can be configured from command line using netsh command. 2 simple steps are required to setup Windows Firewall to allow non-secure FTP traffic

1) Open port 21 on the firewall:

netsh advfirewall firewall add rule name="FTP (no SSL)" action=allow protocol=TCP dir=in localport=21

 

2) Activate firewall application filter for FTP (aka Stateful FTP) that will dynamically open ports for data connections:

netsh advfirewall set global StatefulFtp enable

 

Source: This forum thread on MSDN (you have to scroll down a lot to get to the correct answer).

posted @ Wednesday, December 16, 2009 5:46 PM

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 3 and type the answer here: