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

Access logs show IP of the proxy, not client #936

Open
twm opened this issue Jan 8, 2022 · 0 comments
Open

Access logs show IP of the proxy, not client #936

twm opened this issue Jan 8, 2022 · 0 comments
Labels

Comments

@twm
Copy link
Owner

twm commented Jan 8, 2022

The access logs show 127.0.0.1 as the client IP of every request, which is the IP address of the frontend proxy, not the actual remote IP:

Jan 08 14:03:40 hostname yarrharr[1373]: [twisted.python.log] "127.0.0.1" - - [08/Jan/2022:22:03:40 +0000] "GET / HTTP/1.0" 200 13001 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"

Follow-up on #308. See https://twistedmatrix.com/trac/ticket/5807 for the general issue, though twisted.web.http.proxiedLogFormatter may be sufficient to address this particular issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant