Announcement

Collapse
No announcement yet.

Open Port Range In Windows Firewall

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Open Port Range In Windows Firewall

    It is quite difficult situation when you want to open a port range in the Windows Firewall as the firewall GUI not allows you to open a range of ports easily.

    You can overcome this situation and open the port range using the following command :

    FOR /L %I IN (Minimum_Port,increment,Maximum_Port) DO netsh firewall add portopening PROTOCOL %I "Name Of Rule"%I
    Note :

    Minimum_Port = The starting port number in the range that you would like to open.

    Maximum_Port = The last port number in the range that you would like to open.

    Increment = This should be 1

    PROTOCOL = Either TCP or UDP

    Name Of Rule = Name of the rule
    "It Takes 20 Years To Build A Reputation And Five Minutes To Ruin It. If You Think About That, You'll Do Things Differently. "

  • #2
    Re: Open Port Range In Windows Firewall

    The exact command where you want to open say 100 ports from 500 to 600, would be the following:

    FOR /L %I IN (500,1,600) DO netsh firewall add portopening TCP %I "open-tcp-500-600" %I
    Rock _a.k.a._ Jack Daniel

    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    Comment

    Working...
    X