x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 220

# Blocking an IP or IPs.

I was given an IP of 213.248.112.0/24 to block on our firewall. What exactly does the /24 mean at the end. Should I block 213.248.112.1 to 213.248.112.24?
0
scully12
1 Solution

Commented:
The /24 is a common method for denoting the subnet mask used with a particular network block.  In order to translate this into a X.X.X.X format, simply start countint the number of bits from LEFT to RIGHT, up to 24.  So in your case, its:

1 1 1 1 1 1 1 1  = 8 bits = 255

If you multiply those 8 bits by three, you get 24, so the subnet mask is:

255.255.255.0 <- 8 bits.8 bits. 8 bits

As for your firewall, you should put in the network number (the address ending with .0), and the 255.255.255.0 as the subnet mask.  On some systems, the firewall OS will autopmatically change the notation for you.
0

Author Commented:
Thanks for the quick response.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

## Featured Post

Tackle projects and never again get stuck behind a technical roadblock.