www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathew Hennessy <henne...@thoughtcrime.com>
Subject mod_access/3257: can't use 8-bit CIDR masks
Date Tue, 20 Oct 1998 23:32:17 GMT

>Number:         3257
>Category:       mod_access
>Synopsis:       can't use 8-bit CIDR masks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 20 16:40:01 PDT 1998
>Last-Modified:
>Originator:     hennessy@thoughtcrime.com
>Organization:
apache
>Release:        1.3.3
>Environment:
uname -a: SunOS marvin 5.6 Generic_105181-08 sun4m sparc SUNW,SPARCstation-20
gcc -v: gcc version 2.8.1
>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..
>How-To-Repeat:

>Fix:
check the CIDR mask code? ;) ;)
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]




Mime
View raw message