Skip to content

REMOTE_ADDR is incorrectly populated #734

@oniric85

Description

@oniric85

Hi, all
I was trying to determine what was not working with my GeoIP database that I've set up for ModSecurity under IIS. It seems to me that REMOTE_ADDR variable is filled with the ip address concatenated to the REMOTE_PORT like

127.0.0.1:54321

This is not correct as it then causes the Geo lookup to fail as per this log line:
GEO: Looking up "xxx.xxx.xxx.xxx:63565".
Geo lookup for "xxx.xxx.xxx.xxx:63565" failed: The requested name is valid, but no data of the requested type was found.

I think this is a big issue as it seems not to be local to the Geo IP section but a global problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions