[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Blocking sub-range of IP addresses



On 2003/03/11 02:12:12PM -0600, Tue, Bill wrote:
> Hello Debian,
> 
> I want to block all ip's ending in 224 to 255 but not 220 and others
> searching the net I found I need to add "/27" to end of the ip.
> I understand /8 /16 /24 /32 somewhat but...
> 
> My question:  what makes /27 significant 
> X.Y.Z.224 - X.Y.Z.255
> deny from 63.148.99.224/27
> 

apt-get install gipsc
gipsc will do all the math for you

/27 is cidr notation for a 255.255.255.224 netmask, meaning
63.148.99.224-255

Attachment: pgpqzBr5Btv10.pgp
Description: PGP signature


Reply to: