smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

添加 nftables set 支持

Open amnore opened this issue 3 years ago • 3 comments

增加 nftset 配置项与相关代码,通过 libnftables 库将 ip 添加到对应的 set 中。解决 #681。

amnore avatar Aug 29 '21 13:08 amnore

nft的组件不是所有系统都有,这个看看能否做成一个编译开关。

pymumu avatar Aug 30 '21 10:08 pymumu

nft的组件不是所有系统都有,这个看看能否做成一个编译开关。

代码中没有条件编译的基础设施,所以我从 dnsmasq 中抄了一个脚本过来(bld/pkg-wrapper)。nftables 的代码默认不编译,给 build-pkg.sh 传 --with-nftables 可以打开开关。您看这样是否合适?

注:dnsmasq 也是 gpl3,这个脚本应该没有 license 问题。

amnore avatar Aug 30 '21 15:08 amnore

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

zhvb avatar Mar 30 '22 08:03 zhvb

#1117 这个可以关了

yujincheng08 avatar Oct 23 '22 11:10 yujincheng08