Skip to content

Missing the ip address in debug and error log whenever @ipMatch matches. #738

@zimmerle

Description

@zimmerle

The debug log and consequently the error log are not being populated right. It is missing the ip address when the function @ipMatch matches an IP address.

Here is how the logs looks like in the current version:

[...] ModSecurity: Warning. (null) at REMOTE_ADDR. [file "/etc/modsecurity/modsecurity.conf"] [line "224"] [id "164"] [hostname "duh"] [uri "/"] 

Here is the result from @ipMatchFromFile:

[...] ModSecurity: Warning. IPmatchFromFile: "fe80::250:56ff:fec0:8" matched at REMOTE_ADDR. [file "/etc/modsecurity/modsecurity.conf"] [line "223"] [id "163"] [hostname "duh"] [uri "/"] [unique_id "U5oqj38AAQEAABEVqZcAAAAC"]

Both, should contains the matched ip address.

Note that, besides this log issue, the function seems to work well.

Metadata

Metadata

Assignees

Labels

bugIt is a confirmed bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions