Skip to content

@ipMatch "Could not add entry" on slash notation in 2.8.0 #706

@lifeforms

Description

@lifeforms

Slash notation no longer works for IPv6 subnets in @ipMatch operator in 2.8.0:

SecRule REMOTE_ADDR "@ipMatch 2001:db8::/32" \
    "id:9999999,phase:1,t:none,nolog,deny"

Parsing gives the following error:

AH00526: Syntax error on line 45 of /usr/local/etc/apache24/mods-enabled/security2.conf:
Error creating rule: Could not add entry "2001:db8::/32" from: 2001:db8::/32.

Normal IPv6 address notation, such as "@ipMatch 2001:db8::" works normally.

Tested on FreeBSD 8.4+Apache 2.2 and FreeBSD 9.2+Apache 2.4.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions