Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

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
Asked:
scully12
1 Solution
 
scott_rentonCommented:
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
 
scully12Author Commented:
Thanks for the quick response.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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