luci-app-adguardhome icon indicating copy to clipboard operation
luci-app-adguardhome copied to clipboard

Use uci to manage firewall

Open stevenjoezhang opened this issue 1 year ago • 3 comments

OpenWrt is switching to fw4 since version 22.03. Using commands like iptables and ip6tables will generate warning messages in the system. 截屏2024-03-25 12 02 38 Maintaining firewall settings with "uci set firewall" can be compatible with both new and old versions of OpenWrt.

stevenjoezhang avatar Mar 25 '24 04:03 stevenjoezhang

改成uci 是不是意味着兼容了firefwall4了

GoogleBeEvil avatar Sep 07 '24 17:09 GoogleBeEvil

@GoogleBeEvil 是的,这样改新版和旧版都可以兼容

stevenjoezhang avatar Sep 20 '24 09:09 stevenjoezhang

@stevenjoezhang https://github.com/rufengsuixing/luci-app-adguardhome/issues/145 起初 我编译的另外一个改写成nftable防火墙规则的分支,结果无效(仍然需要手动添加nft防火墙规则) 又发现改写成uci设置的分支,编译完,其中adg设置里设置成“转发53端口到adg”这个选项并没有生效,(印象里是webui里显示过滤成功,但是客户端该有的广告还是有,另外作为dnsmaq上级就失效了)。能发一个编译好的ipk以供测试么

GoogleBeEvil avatar Sep 20 '24 13:09 GoogleBeEvil