We're specifying CIDR addresses in AWS rules, and I came across something I don't understand.
/32
means one single address. So 10.0.0.0/32
means only the single address 10.0.0.0
. But an address ending in .0
is a broadcast address, right? So in effect, this single address means any address in the range 10.0.0.1 - 10.0.0.255
.
/24
means 255 addresses. So 10.0.0.1/24 means any address in the range 10.0.0.1 - 10.0.0.255
. ( I don't use 10.0.0.0/24
here because that includes the .0 "expansion" we got above, and I'm trying to contrast with that.)
Are the above statements correct? What is the effective difference between .0/32
and .1/24
?
edit
I certainly may be very confused, and I appreciate the attempts to de-confuse me.
My confusion about the .0 address being special in some way stems from my coworker telling me it was so. We set a rule on an AWS cluster to allow connections from 10.0.1.0/32, and it seemingly allowed a connection from 10.0.1.25. Is there another explanation for that?
edit2
Turns out my coworker was very wrong, even in reporting to me which address and subnet he used in the new AWS rule. Sorry for the confusion. If I could delete this question, I would.