Page 1 of 1

X-Forwarded-For to get remote Ip when proxying to Tomcat

PostPosted: Wed Mar 30, 2016 8:03 pm
by gade
Hi,

I'm using Fail2Ban to lock down IP's with X amount of failed login attempts.

I've choosen to install subsonic as a war in Tomcat8, and I am proxying access to/from mydomain.com:8080/subsonic to mydomain.com/subsonic through apache (running on ubuntu).
When I check the subsonic log file for a failed login attempt it says: Login failed for [USER] from [0:0:0:0:0:0:0:1]

I've tried setting the RemoteIpValve in my Tomcats server.xml config to get the remote-ip with no change in the logfile - still [0:0:0:0:0:0:0:1].

Is this an error in my setup or does Subsonic logging not support this?

Thank you for the amazing work :-)