smartdns
smartdns copied to clipboard
添加 nftables set 支持
增加 nftset 配置项与相关代码,通过 libnftables 库将 ip 添加到对应的 set 中。解决 #681。
nft的组件不是所有系统都有,这个看看能否做成一个编译开关。
nft的组件不是所有系统都有,这个看看能否做成一个编译开关。
代码中没有条件编译的基础设施,所以我从 dnsmasq 中抄了一个脚本过来(bld/pkg-wrapper)。nftables 的代码默认不编译,给 build-pkg.sh 传 --with-nftables 可以打开开关。您看这样是否合适?
注:dnsmasq 也是 gpl3,这个脚本应该没有 license 问题。
as openwrt version 22.03's requirements for firewall4 and dnsmasq-with-nft, please consider merge this nft support and little donation out of respect. (w/o pic) pull#4977 issue#9248
#1117 这个可以关了