I’ve done a lot of reading on the subject of openwrt , dnsmasq, nftsets/ipsets with regard to setting up an nftset/ipset relating to a DDNS domain in the hope that dnsmasq would populate the ipset that a firewall rule could use - perhaps triggered by an nslookup on cron.
It left me dazed !
My questions are:
-in openwrt (24.10.4 install with dnsmasq-full the only addition/change as such) , does/can nftset/ipset updates by dnsmasq work or not please ?
- if ‘yes’, how and is there a definitive guide ?
It seems to be a bit of a mess of a subject so, i’d like to know if i’m wasting my time on it for now.
dnsmasq-full supports adding resolved domains to a nftset which you have to define in luci/network/firewall
there is no such thing as nftset/ipset , it is apple XOR potato.
Step 1 : create nftset
Step 2 : create rule using it
Step 3 : once you install dnsmasq-full the options to populate nftset appear
Step 4 : use owut for future upgrades, default dnsmasq can not start with extra options
The default fw4 table is of type inet, not ip or ip6. dnsmasq was trying to add the results to set table ip fw4 ddnsset, but it’s really inet.
It’s probably a misleading option in LuCI since if you leave the table as fw4, changing the family from “IPv4+IPv6” will break it, even if the set is meant for IPv4 results only.