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

Support blocking based on MAC-address #401

Open folbricht opened 4 months ago

folbricht commented 4 months ago

Adds a new blocklist format "mac" which can be used to filter based on MAC addresses in EDNS0 option 65001

[groups.cloudflare-blocklist]
type             = "blocklist-v2"
resolvers        = ["cloudflare-dot"]
blocklist-format = "mac"
blocklist        = [ # Define the MAC addresses to be blocked, these are expected to be supplied by the client in EDNS0 option 65001
  '01:23:45:ab:cd:ef',
  '01:01:01:ff:ff:ff',
]

Implements #398