]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #935 and #1104, clarify RPZ order and semantics.
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Tue, 23 Jul 2024 23:54:02 +0000 (01:54 +0200)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Tue, 23 Jul 2024 23:54:02 +0000 (01:54 +0200)
doc/Changelog
doc/example.conf.in
doc/unbound.conf.5.in

index d8676d62a8ce05f6958e29fc25b77c639fd6cc6e..15919c46c5830180fad98fdf2d752ac62fb7b9b0 100644 (file)
@@ -1,6 +1,7 @@
 23 July 2024: Yorgos
        - Fix #1106: ratelimit-below-domain logs the wrong FROM address.
        - Cleanup ede.tdir test.
+       - For #935 and #1104, clarify RPZ order and semantics.
 
 23 July 2024: Wouter
        - Merge #1110: Make fallthrough explicit for libworker.c.
index 329bed15061420b1ae5c3772ee36a3695b11c80e..19aa599523fc5f336474e5b72a14ecd837076666 100644 (file)
@@ -1339,7 +1339,8 @@ remote-control:
 #      dnstap-log-forwarder-response-messages: no
 
 # Response Policy Zones
-# RPZ policies. Applied in order of configuration. QNAME, Response IP
+# RPZ policies. Applied in order of configuration. Any match from an earlier
+# RPZ zone will terminate the RPZ lookup. QNAME, Response IP
 # Address, nsdname, nsip and clientip triggers are supported. Supported
 # actions are: NXDOMAIN, NODATA, PASSTHRU, DROP, Local Data, tcp-only
 # and drop.  Policies can be loaded from a file, or using zone
index ab146d5e4104a8eaa9f0fba37e8bdc38da7e3e07..90e109ad76189b6c09d26ac7f1471d75f5c95de1 100644 (file)
@@ -2883,9 +2883,11 @@ Enable to log forwarder response messages.  Default is no.
 .SS Response Policy Zone Options
 .LP
 Response Policy Zones are configured with \fBrpz:\fR, and each one must have a
-\fBname:\fR. There can be multiple ones, by listing multiple rpz clauses, each
-with a different name. RPZ clauses are applied in order of configuration. The
-\fBrespip\fR module needs to be added to the \fBmodule-config\fR, e.g.:
+\fBname:\fR. There can be multiple ones, by listing multiple RPZ clauses, each
+with a different name. RPZ clauses are applied in order of configuration and
+any match from an earlier RPZ zone will terminate the RPZ lookup. Note that a
+PASSTHRU action is still considered a match.
+The \fBrespip\fR module needs to be added to the \fBmodule-config\fR, e.g.:
 \fBmodule-config: "respip validator iterator"\fR.
 .P
 QNAME, Response IP Address, nsdname, nsip and clientip triggers are supported.
@@ -2893,12 +2895,13 @@ Supported actions are: NXDOMAIN, NODATA, PASSTHRU, DROP, Local Data, tcp\-only
 and drop.  RPZ QNAME triggers are applied after \fBlocal\-zones\fR and
 before \fBauth\-zones\fR.
 .P
-The rpz zone is formatted with a SOA start record as usual.  The items in
-the zone are entries, that specify what to act on (the trigger) and what to
-do (the action).  The trigger to act on is recorded in the name, the action
-to do is recorded as the resource record.  The names all end in the zone
-name, so you could type the trigger names without a trailing dot in the
-zonefile.
+The RPZ zone is a regular DNS zone formatted with a SOA start record as usual.
+The items in the zone are entries, that specify what to act on (the trigger)
+and what to do (the action).
+The trigger to act on is recorded in the name, the action to do is recorded as
+the resource record.
+The names all end in the zone name, so you could type the trigger names without
+a trailing dot in the zonefile.
 .P
 An example RPZ record, that answers example.com with NXDOMAIN
 .nf
@@ -2998,7 +3001,7 @@ externally blocked. Default is no.
 If enabled the zone is authoritatively answered for and queries for the RPZ
 zone information are answered to downstream clients. This is useful for
 monitoring scripts, that can then access the SOA information to check if
-the rpz information is up to date. Default is no.
+the RPZ information is up to date. Default is no.
 .TP
 .B tags: \fI<list of tags>
 Limit the policies from this RPZ clause to clients with a matching tag. Tags