summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-09-27 21:31:20 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-09-27 21:49:28 +0100
commit47aefca5e405b4b6627ef952fdc42e61b1baa770 (patch)
tree853a36100c922de403e543fa779bb1ce58c7ab2e /man
parent981fb037102306a4ca683f14c8469db4d5e27233 (diff)
downloaddnsmasq-47aefca5e405b4b6627ef952fdc42e61b1baa770.tar.gz
Add --nftset option, like --ipset but for the newer nftables.v2.87test2
Thanks to Chen Zhenge for the original patch, which I've reworked. Any bugs down to SRK.
Diffstat (limited to 'man')
-rw-r--r--man/dnsmasq.89
1 files changed, 9 insertions, 0 deletions
diff --git a/man/dnsmasq.8 b/man/dnsmasq.8
index a71610c..1d4993c 100644
--- a/man/dnsmasq.8
+++ b/man/dnsmasq.8
@@ -550,6 +550,15 @@ These IP sets must already exist. See
.BR ipset (8)
for more details.
.TP
+.B --nftset=/<domain>[/<domain>...]/[(6|4)#[<family>#]<table>#<set>[,[(6|4)#[<family>#]<table>#<set>]...]
+Similar to the \fB--ipset\fP option, but accepts one or more nftables
+sets to add IP addresses into.
+These sets must already exist. See
+.BR nft (8)
+for more details. The family, table and set are passed directly to the nft. If the spec starts with 4# or 6# then
+only A or AAAA records respectively are added to the set. Since an nftset can hold only IPv4 or IPv6 addresses, this
+avoids errors being logged for addresses of the wrong type.
+.TP
.B --connmark-allowlist-enable[=<mask>]
Enables filtering of incoming DNS queries with associated Linux connection track marks
according to individual allowlists configured via a series of \fB--connmark-allowlist\fP