Add Ports to Windows Firewall
Friday, January 25th, 2008 -- By ETTo add a range of ports to Windows Firewall from the Command Line
- Start Command Line
- Type in the following where the range is specified in ( ) and the name of the firewall entry is in ” “.
FOR /L %I IN (5001,1,5010) DO netsh firewall add portopening TCP %I “PassiveFTP”%I - Each port in the range will be added with an “OK” confirmation.
