How do I block ip range in firewall?

How do I block ip range in firewall?
66.249.66.82
66.249.66.36
66.249.66.27
66.249.66.143
66.249.66.135
66.249.66.75
66.249.66.59

I know how to block a single ip address but dont know how to block ip range.

I might not be sure which IP mask could this be as it cannot be just one mask (IP range) as far as I can see. So the first would be .27 and the last .143 :thinking:
We might need more than two, if so.

It has to be entered in a CIDR notation.

With the 66.249.66.27/24 we would block a IP range (total of 256) from 66.249.66.1 to 66.249.66.255, which includes the ones you want to block and those in between.

For your case, I believe it should have to be and we should use multiple:

66.249.66.27/32
66.249.66.28/30
66.249.66.32/27
66.249.66.64/26
66.249.66.128/28

In a Firewall Rule would look like below expression:

  • (ip.src in {66.249.66.27/32 66.249.66.28/30 66.249.66.32/27 66.249.66.64/26 66.249.66.128/28})

In picture, here:

You could add each IP separated like below expression:

  • (ip.src in {66.249.66.82 66.249.66.36 66.249.66.27 66.249.66.143 66.249.66.135 66.249.66.75 66.249.66.59})

In picture:

You need to know the mask, for example /24, /21, /29, /16 …

Example:

  • (ip.src in {192.0.2.1/24})

Helpful online tools in case if needed:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.