AdguardTeam / AdguardTeam/dnsproxy

Feature request: add option for setting X-Real-IP header when using DOH upstream

未关闭
#434 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
3.3k
派生
343
PR 合并指标
30 天内没有已合并 PR

描述

the use case is:

1. external clients connecting to proxy over DOT
2. proxy connects to upstream using DOH, with `X-Real-IP` header
3. the upstream server can respond correctly depending on source address.

without having the address, the upstream i use (technitium-DNS) can't tell where the clients are since all it can see is the proxy address.
it needs to know the source for proper blocking, and only certain clients are allowed to request some DNS zones and recursion.

this is what the technitium instructions say:
> When using a reverse proxy with the DNS-over-HTTP service, you need to add X-Real-IP header to the proxy request with the IP address of the client to allow the DNS server to know the real IP address of the client originating the request.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。