AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.59k stars 1.84k forks source link

Block clients/requests with matching question domain name #6096

Closed WeWin55 closed 1 year ago

WeWin55 commented 1 year ago

Prerequisites

The problem

Hi, my adguard home dns servers are beeing scanned and used by some fishy port scanners. They use different ip addresses v4 and v6. Unfortunately always different asn's.

I blocked the dns over https requests by blocking their user agent in my nginx reverse proxy. Now they are using dns over tls to request and query my dns server. I want to block all clients that request a specifiy domain name.

Example request from scanner: dns-XXX-it_surfshark_81628.doe.dnsavailable.xyz

It would be nice, if adguard could add persistens clients matching specific dns regex. Example: dnsavailable.xyz

image

Proposed solution

Adding the option to match dns request regex under persistent client would allow to block clients from scanners or abusive dns clients.

image

Alternatives considered and additional information

No response

ainar-g commented 1 year ago

Why not just add ||dnsavailable.xyz^ to Settings → DNS settings → Disallowed domains input?

WeWin55 commented 1 year ago

Okay thanks @ainar-g. Didnt though about this feature, it is perfect. The blocked requests are alos not shown in the request log.

I will mark this request as solved!