Page 1 of 1

Append Log Entry for Connections with X-Forwarded-For IP

Posted: Thu Oct 26, 2017 3:01 pm
by kaluaabyss
Currently (9.0.0.6), when a proxied connection is received the log shows something similar to:
Incoming connection request on HTTPS interface x at <local IP> accepted from <proxy IP>

Cerberus is aware of the X-Forwarded-For header which contains the real client IP, but does not indicate it in this log event. Simply adding "for <X-Forwarded-For IP>" to the end of that log line would be much appreciated.

related: viewtopic.php?f=2&p=11274#p11274

Thank you!

Re: Append Log Entry for Connections with X-Forwarded-For IP

Posted: Wed Nov 01, 2017 4:31 pm
by pacman
The X-Forwarded header information is collected further down the connection chain.
Cerberus doesn't have that information at the point of HTTPS interface x at <local IP> accepted from <proxy IP> so adding "for <X-Forwarded-For IP>" wouldn't work.