folbricht / routedns

DNS stub resolver, proxy and router with support for DoT, DoH, DoQ, and DTLS
BSD 3-Clause "New" or "Revised" License
476 stars 63 forks source link

Ellaborate "Client Blocklist" to use the EDNS Mac-address option (65001) #398

Open cbuijs opened 4 months ago

cbuijs commented 4 months ago

For client-blocklist it would be nice to also be able to filter baed on on mac-address.

Either straight from the query (hard to do and not uniform on different platforms), or just from EDNS Option 65001.

We discussed this earlier in #105 already, but I think supporting macs in a list utilising EDNS Option 65001 is quite accepted standard nowadays (see PowerDNS, DNSDist and DNSMasq for example).

folbricht commented 4 months ago

This was more complex that I thought but there's an implementation on issue-398 branch. Can you give it a try? I added a unit test but haven't been able to test fully end-to-end.