How to define a rule in Windows server 2008 firewall to be applied to an IP range. For example blocking IPs which start with 202 I mean all IPs which meet 202...*

There are two options when creating a new rule:

  1. This IP address or subset:

  2. This IP address range:

How should I define such a wide range ?

migrated from superuser.com Nov 9 '11 at 1:28

This question came from our site for computer enthusiasts and power users.

  • That is the range between to I assume that you mean IPv4. – soandos Aug 2 '11 at 17:23
  • I'd first ask the question, "why are you blocking all those IPs in the first place?" A blanket answer wouldn't fit here, nor would it be beneficial to you in the long term. – surfasb Aug 2 '11 at 17:24
  • Yes I mean IP v4. I was wondering if this wide range has a negative performance issue or not. – Xaqron Aug 2 '11 at 17:25

The range begins at and ends at You can also represent it as

Why /8?

An IPv4 address is a 32-digit binary number that has been conveniently divided into 4 groups. The address expressed in binary is

11001010 00000000 00000000 00000000

In this context /8 means "match the first 8 binary digits", or any address that begins with 202..

Read all about it at the Wikipedia article for Classless Inter-Domain Routing.

  • Why ? What does 8 mean here ? – Xaqron Aug 2 '11 at 17:54
  • @Xaqron I updated my answer to address your question. – William Jackson Aug 2 '11 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.