public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [RFC PATCH] Unbound: Deny DNS queries of type ANY
@ 2021-09-25  7:53 Peter Müller
  2021-09-25  8:12 ` Bernhard Bitsch
  2021-09-28 10:53 ` Michael Tremer
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Müller @ 2021-09-25  7:53 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

While not inherently malicious, ANY queries are nowadays commonly used
in DNS-based DDoS attacks, since nameservers must respond with a _very_
large answer to a very small query.

In 2015, Cloudflare stopped responding to them altogether (see:
https://blog.cloudflare.com/deprecating-dns-any-meta-query-type/), and
several discussions took place in various DNS operator working groups,
ultimately resulting in RFC 8482 (https://datatracker.ietf.org/doc/html/rfc8482).

Aside from - very uncommon - debugging or enumerating purposes, there is
little legitimate reason why a client behind IPFire needs to conduct an
ANY query. In fact, no up-to-date implementation of some legitimate software
has been observed doing so in the recent past.

To prevent IPFire from unintentionally participating in a DDoS attack,
this patch changes the handling of ANY queries, forbidding them
altogether.

Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 config/unbound/unbound.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/unbound/unbound.conf b/config/unbound/unbound.conf
index 9d5e840dd..3848b0f71 100644
--- a/config/unbound/unbound.conf
+++ b/config/unbound/unbound.conf
@@ -40,6 +40,7 @@ server:
 	harden-large-queries: yes
 	harden-referral-path: yes
 	aggressive-nsec: yes
+	deny-any: yes
 
 	# TLS
 	tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt
-- 
2.26.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-28 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25  7:53 [RFC PATCH] Unbound: Deny DNS queries of type ANY Peter Müller
2021-09-25  8:12 ` Bernhard Bitsch
2021-09-27  9:15   ` Peter Müller
2021-09-28 10:53 ` Michael Tremer
2021-09-28 12:17   ` Bernhard Bitsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox