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

Need help? Post your questions here.

Moderator: moderators

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

Postby gade » Wed Mar 30, 2016 8:03 pm

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 :-)
gade
 
Posts: 1
Joined: Wed Mar 30, 2016 7:50 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests