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

webserver honoring x-forwarded-for or x-real-ip (webserver behind proxy) #10332

Open
kubax opened this issue Apr 25, 2021 · 1 comment
Open

Comments

@kubax
Copy link

kubax commented Apr 25, 2021

  • Program: Authoritative (at least, but might also be in Recursor, dnsdist)
  • Issue type: Feature request

Short description

When the PowerDNS Webserver is behind a proxy (e.g. nginx) and the proxy alters the headers to set x-forwarded-for or x-real-ip the PowerDNS Webserver ignores this, and shows the IP of the Proxy (in my case a local docker container IP)
This makes it hard to see who is using the webserver

Usecase

making the logging more acurate.

Description

Just use x-forwarded-for or x-real-ip as the client ip when they are set. Even better would be if there was a option to tell the PowerDNS Webserver wich ip is trusted to set x-forwarded-for
( https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html#remoteipinternalproxy )

@rgacogne
Copy link
Member

Just as a note, dnsdist has a feature to trust x-forwarded-for headers for DoH queries, but not for the webserver.

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

No branches or pull requests

3 participants