Subsonic + lighttpd reverse proxy + fail2ban

Hello,
I have my Subsonic behind a lighttpd reverse proxy. I was trying to setup Fail2ban but I've realized Subsonic log server IP instead client IP:
I don't know how to fix this. I have Owncloud in the same server with the same lighttpd reverse proxy and fail2ban working correctly:
i've tried mod_extforward:
But nothing changes.
Any idea?
Thank you.
I have my Subsonic behind a lighttpd reverse proxy. I was trying to setup Fail2ban but I've realized Subsonic log server IP instead client IP:
- Code: Select all
[2015-11-10 18:00:35,772] INFO LoginFailureLogger - Login failed for [admin] from [192.168.1.10]
I don't know how to fix this. I have Owncloud in the same server with the same lighttpd reverse proxy and fail2ban working correctly:
- Code: Select all
{"reqId":"359ea75466baab17770cca113a3f8d20","remoteAddr":"212.36.66.87","app":"core","message":"Login failed: 'admin' (Remote IP: '212.36.66.87', X-Forwarded-For: '')","level":2,"time":"2015-11-10T15:38:25+00:00"}
i've tried mod_extforward:
- Code: Select all
extforward.headers = ("X-Real-IP")
extforward.forwarder = ("192.168.1.10" => "trust")
But nothing changes.
Any idea?
Thank you.