Support matching clients by GeoIP data
Prerequisites
-
[X] I have checked the Wiki and Discussions and found no answer
-
[X] I have searched other issues and found no duplicates
-
[X] I want to request a feature or enhancement and not ask a question
The problem
set specefic ip for a domain on group of clients ( via geo and via ip subnets ) for i.e:
if clients from 192.168.0.0/24 querid example.com, adguard would say its on 125.251.2.1 if clients from 192.168.10.0/24 querid example.com, adguard would say its on 243.251.2.1 if clients from Germany (country) querid example.com, adguard would say its on 2.2.2.2 if clients from 192.168.0.10/24,185.2.12.0/24,19.2.1.2/24 querid example.com, adguard would say its on 6.2.2.5
if it's already there, please tell me how to do it ?
Proposed solution
- with this feature you're kinda implementing simple/manual geodns . . . . . if it's already there, please tell me how to do it ?
Alternatives considered and additional information
No response
As mentioned, you can already use CIDRs with $client modifier. Retitling.
I tried it but no success, can you please create the custom rules that could do these ?
if clients from 192.168.0.0/24 querid example.com, adguard would say its on 125.251.2.1 if clients from 192.168.10.0/24 querid example.com, adguard would say its on 243.251.2.1 if clients from 192.168.0.10/24,185.2.12.0/24,19.2.1.2/24 querid example.com, adguard would say its on 6.2.2.5 if other clients queried example.com, adguard would say its on 1.1.1.1
and please tell me if its possible to issue it to multi domain name too or not ?
consider this:
if clients from 192.168.0.10/24,185.2.12.0/24,19.2.1.2/24 querid example.com, aa.com, bb.com,gg.com, adguard would say its on 5.5.5.5
Again, this is an issue tracker and not a discussion forum. Please use the Discussions page for that. Also, you can find the answers to your questions yourself in our filtering rules documentation.
Ok, Thank you, I asked in discussions ...
for anyone that looks for this matter https://github.com/AdguardTeam/AdGuardHome/discussions/7097