Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • 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
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.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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