www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: mod_access/3257: can't use 8-bit CIDR masks
Date Tue, 20 Oct 1998 23:50:00 GMT
The following reply was made to PR mod_access/3257; it has been noted by GNATS.

From: Marc Slemko <marcs@znep.com>
To: Mathew Hennessy <hennessy@thoughtcrime.com>
Cc: apbugs@hyperreal.org
Subject: Re: mod_access/3257: can't use 8-bit CIDR masks
Date: Tue, 20 Oct 1998 16:45:12 -0700 (PDT)

 On 20 Oct 1998, Mathew Hennessy wrote:
 
 > >Description:
 > Hi,
 >     I'm trying to set up my access.conf like so (the IPs @c have been
 > changed to protect the innocent):
 > 
 > <Directory />
 > ...
 > Order deny,allow
 > deny from all
 > allow from 10.1.1.0/8 10.1.2.0/8 10.1.4.0/8 # doesn't allow any of these
 > </Directory>
 > 
 > It turns out that 8-bit CIDR Masks don't work.  16-bit masks will, and
 > regular masks (10.1.1.0/255.255.255.0) masks will, but 8-bit CIDR masks won't.
 > I'd prefer to use the CIDR masks, but can work around this by using the 
 > original (10.1.1) or full (10.1.10/255.255.255.0) masks..
 
 I'm confused.
 
 Exactly what size of netblock are you trying to configure?
 
 A /8 is the same size as a class A, ie. 255.0.0.0.
 
 A /24 is the same size as a class C, ie. 255.255.255.0
 

Mime
View raw message