AdguardTeam / AdguardTeam/dnsproxy

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

Đang mở
#434 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
3.3k
Fork
343
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.