Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth failure logs contain local ip adress when container behind reverse proxy #204

Closed
1 task done
Trteich opened this issue Jul 11, 2024 · 3 comments
Closed
1 task done

Comments

@Trteich
Copy link

Trteich commented Jul 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When container is behind reverse proxy(Nginx proxy manager in my case), web UI auth failure log entries contain adress of proxy, but not real adress of host trying to connect.
All traffic is proxied by Cloudflare's network to my NPM. I've tried different settings for NPM to insert real ip to request( setting real_ip_header CF-Connecting-IP, etc.), but nothing helped

Expected Behavior

Logs should contain real ip adress of auth failed client

Steps To Reproduce

  1. Install container behing reverse proxy
  2. Proxy all traffic to your domain via Cloudflare
  3. Access to deluge container web UI
  4. Enter wrong password
  5. Auth failure logs contains locall adress of reverse proxy

Environment

- OS: Debian 11

CPU architecture

x86-64

Docker creation

docker run -d \
  --name=deluge \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e DELUGE_LOGLEVEL=error \
  -p 8112:8112 \
  -p 6881:6881 \
  -p 6881:6881/udp \
  -p 58846:58846 `#optional` \
  -v /path/to/deluge/config:/config \
  -v /path/to/downloads:/downloads \
  --restart unless-stopped \
  lscr.io/linuxserver/deluge:latest

Container logs

08:13:29 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 192.168.1.120)
@Trteich Trteich changed the title [BUG] <title> Auth failure logs contain local ip adress when container behind reverseproxy Auth failure logs contain local ip adress when container behind reverseproxy Jul 11, 2024
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@Trteich Trteich changed the title Auth failure logs contain local ip adress when container behind reverseproxy Auth failure logs contain local ip adress when container behind reverse proxy Jul 11, 2024
@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@LinuxServer-CI LinuxServer-CI closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 10, 2024
Copy link

github-actions bot commented Nov 9, 2024

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants