mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Support for add-subnet option from dnsmasq (ECS/EDNS0 Client Subnet) #2321
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#2321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rampageX on GitHub (Jan 2, 2021).
Originally assigned to: @EugeneOne1 on GitHub.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Problem Description
I set dnsmasq with my main DNS server on router because i need some complex
ipsetrules support, and AdguardHome is the only upsteam server. But now on AGH dashboard, i can only see the router ip but not the others real client ip.Proposed Solution
Add
add-macandadd-subnetto dnsmasq, then AGH can get the real client ip from every requery.Additional Information
Pi-hole: Support for add-subnet option from dnsmasq (ECS/EDNS0 Client Subnet)
@ameshkov commented on GitHub (Jan 4, 2021):
Am I right that you'd like AGH to be able to extract the client's IP and Mac addresses that dnsmasq adds to the outgoing DNS queries?
@rampageX commented on GitHub (Jan 4, 2021):
@ameshkov Yes, so that I can see which device made the request on AGH instead of showing all the gateway’s IP.
@ianmacd commented on GitHub (Mar 18, 2021):
I would like to add my voice to this request.
This would make it a lot more practical to run AdGuard Home on a machine already resolving DNS for a local network, such as a home router.
@ameshkov commented on GitHub (Mar 19, 2021):
Well, as I see it, this would be more useful to cloud installations of AGH - so that you could configure the router to pass clients info to AGH.
Anyways, it's planned on v0.106 so it's coming relatively soon.
@ptrsmk commented on GitHub (Jul 2, 2021):
v0.106 has shipped, obviously. Has this been implemented?
@timkgh commented on GitHub (Jul 18, 2021):
@ameshkov
Interested in the dnsmasq-like
add-subnetfeature too where I can set a fixed IP or subnet:The way I use it in dnsmasq on my router: I set it to the IP of the first hop router from my ISP (which has an IP in a different range/subnet than my public IP and obviously used by many other households in my area), this way I still get some geo-locality for CDNs but also protect my public IP address from being passed to upstream DNS servers.
One can test it like this:
dig o-o.myaddr.google.com txt +subnet='1.2.3.0/24' @8.8.8.8(or@9.9.9.11)vs
dig o-o.myaddr.google.com txt +subnet='1.2.3.0/24' @94.140.14.14(you can replace
@<ip>with the<ip>of your Adguard Home DNS server)@c2xusnpq6 commented on GitHub (Oct 19, 2021):
There seems to be no change in
Adguard DNS' response content when different http parameteredns_client_subnetvalues are received.To enhance privacy, some people may want to pretend that they are in a country where privacy laws are strong. People in
Southeast Asia,China,Hong Kong, andMacaumay be willing to trade a little network delay in exchange for enhanced privacy.@c2xusnpq6 commented on GitHub (Oct 19, 2021):
For further information, please see:
https://dns.google/resolve?name=google.com&ct=application/dns-json&edns_client_subnet=46.14.4.0/24
https://dns.google/resolve?name=google.com&ct=application/dns-json&edns_client_subnet=1.34.4.0/24
@c2xusnpq6 commented on GitHub (Oct 19, 2021):
EDNS Client Subnet (ECS) Guidelines: https://developers.google.com/speed/public-dns/docs/ecs
JSON API for DNS over HTTPS (DoH): https://developers.google.com/speed/public-dns/docs/doh/json#supported_parameters