AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Support matching clients by GeoIP data

Open miladtempaccount opened this issue 1 year ago • 5 comments

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

miladtempaccount avatar Jun 24 '24 12:06 miladtempaccount

As mentioned, you can already use CIDRs with $client modifier. Retitling.

ainar-g avatar Jun 24 '24 12:06 ainar-g

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

miladtempaccount avatar Jun 24 '24 12:06 miladtempaccount

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

miladtempaccount avatar Jun 24 '24 12:06 miladtempaccount

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.

ainar-g avatar Jun 24 '24 12:06 ainar-g

Ok, Thank you, I asked in discussions ...

for anyone that looks for this matter https://github.com/AdguardTeam/AdGuardHome/discussions/7097

miladtempaccount avatar Jun 24 '24 14:06 miladtempaccount