#3363: web-ui logs do not show real ip when proxied
-----------------------+--------------------------
 Reporter:  armagedon  |       Type:  bug
   Status:  new        |   Priority:  minor
Milestone:  2.x        |  Component:  Unknown
  Version:  2.0.3      |   Keywords:  web-ui nginx
-----------------------+--------------------------
 Hello,

 I'm using nginx to proxify the web-ui.
 I want to use fail2ban to secure my installation.
 but the web-ui logs only contains local ip :


 {{{
 13:08:35 [ERROR   ][deluge.ui.web.auth         :256 ] Login failed
 (ClientIP 127.0.0.1)

 }}}

 I've make many test in nginx config file, bot can't make it work.
 here the part that supposed to send the original IP :
 {{{
         proxy_set_header        X-Real-IP               $remote_addr;
         proxy_set_header        X-Forwarded-Host        $host;
         proxy_set_header        X-Forwarded-Server      $host;
         proxy_set_header        X-Forwarded-For
 $proxy_add_x_forwarded_for;
         proxy_set_header        X-Forwarded-Port        $server_port;
         proxy_set_header        X-Forwarded-Ssl         on;
         proxy_set_header        X-Forwarded-Proto       $scheme;

 }}}

 the part of the deluge code making the log (auth.py):


 {{{
 log.error('Login failed from %s', __request__.getClientIP())
 }}}

 do you think, it should call something else than getClientIP ?

 thank you.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3363>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/048.0cb2f90a73035b525fa42ff514773c5f%40deluge-torrent.org.

Reply via email to