dnsmasq: nftset: serve from ipset config
authorMathias Kresin <dev@kresin.me>
Tue, 3 May 2022 22:04:36 +0000 (00:04 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 4 May 2022 20:13:55 +0000 (22:13 +0200)
Use existing ipset configs as source for nftsets to be compatible with
existing configs. As the OS can either have iptables XOR nftables
support, it's fine to provide both to dnsmasq. dnsmasq will silently
fail for the present one. Depending on the dnsmasq compile time options,
the ipsets or nftsets option will not be added to the dnsmasq config
file.

dnsmasq will try to add the IP addresses to all sets, regardless of the
IP version defined for the set. Adding an IPv6 to an IPv4 set and vice
versa will silently fail.

Signed-off-by: Mathias Kresin <dev@kresin.me>

No differences found