Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upModsecurity Audit Log Section A logging IP addresses in HEX #2300
Comments
|
Hi @inaratech, What are the versions of your ModSecurity and Nginx connector? |
|
nginx-1.17.9 |
|
Hello all, For information, I have the same problem on: I tried to install Apache server with modsecurity on the same server and there is no problem to get the real IP address. |
|
Yesterday i faced same problem. It wasn't hex ip. It was pointer address. line 1525 - audit_log << " " << this->m_clientIpAddress->c_str(); Regards. |
|
The bug is confirmed. The fix is really about get the value out of this pointer. We are currently working in something else that will present the fix for that issue as a side effect. Therefore I am leave it as is for now. Couple of days the new code will on v3/master. Thanks for the report. |
|
Hey fellows, has this bug been fixed officially? |
|
Hi. Same issue here. Specs: Ubuntu 20.04 LTS Tried Zavazingo's work around but got an error at compile time. Tried other things like reinterpret cast to change the string to a pointer but even after compiling doesn't seem to have effect. |


Hi,
Our modsecurity Audit log is logging section A in HEX i.e) SRC IP and DST IP are all in HEX. Tried searching for references to get this fixed but could not find anything therefore asking here.
A similar configuration on different server logs IP addresses correctly.
sample row as as follows
---zbDIkyKt---A--
[19/Apr/2020:13:50:48 +0900] 1587713388 0x562458815bb0 54952 0x562470244600 443