-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
AGH + Traefik (DNS-over-TLS) : real client IPs are not shown #1789
Comments
Unfortunately, there are no such options for TLS/TCP. As @Potterli20 stated, #1383 seems relevant, but it'd require using a wildcard cert. |
I see, I was afraid it was a TCP limitation (I observed the same issue with Pi-Hole and a similar setup). Seems like we hit a trade-off between certificate convenience and this. One workaround would be to use the built-in DNS-over-TLS server and make a script that can extract the certificates from acme.json (V2 format). I'm going to close the issue since it doesn't seem to be resolvable as it is, thanks for responding though! |
@Wonderfall are you still using this setup? I have practicily the same docker compose config as you, but my browser is very slow. its very frustrating because the rest is working fine. Here is my docker compose file:
See #1495 for my issue |
@Wonderfall did u finally made the script? or @Akruidenberg have you any update on the slowness? ie. if i have on my OS, 192.168.1.2 as primary dns and 8.8.8.8 as secondary it will stick to use 8.8.8.8 or at least it will keep skipping the custom rewrites in adguard :/ EDIT1: EDIT2:
to your provider file... i still to understand why is serving default traefik certificate over the 853 port instead of the one in the acme.json... |
Did you ever figure out why it serves the default certificate instead of a generated one? I think it might be a bug possibly in traefik? When I set up a TCP router with the dot ALPN and run a test I get the following:
|
Nope, i still have as workaround directly exposing adguard (and "stealing" the trafik generated certficate) |
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Issue Details
Expected Behavior
AdGuard should see what the real clients IP are.
Actual Behavior
AdGuard can only see Traefik's IP, so no real clients. Evertyhing else is working as intended (tested with Private DNS on Android 10).
I know that HTTP routing makes use of
X-Forwaded-For
header, but is it possible to do that at all with TCP? Is it even something on AdGuard Home side?While I could use AGH's own DoT server (it'd likely solve the issue), I prefer Traefik for some reasons (routing for specific domain, automatic certificates renewal, and so on).
Additional Information
The text was updated successfully, but these errors were encountered: