Archive for January, 2008

Add Ports to Windows Firewall

Friday, January 25th, 2008 -- By ET

To add a range of ports to Windows Firewall from the Command Line

  1. Start Command Line
  2. 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
  3. Each port in the range will be added with an “OK” confirmation.


BlogTimer
You are visitor number several since September 1, 2001

Copyright Xiaoquan (Michael) Zhang, 2004-2020. All rights reserved.
All trademarks property of their owners.