It is recommended that 1Panel natively support the nftables firewall
1Panel Version
V2.1.1
Please describe your needs or suggestions for improvements
在Debian 12及后续版本中,系统默认已安装并推荐使用nftables作为防火墙框架。但在这些系统上安装1Panel后,防火墙页面会提示:“未检测到 Firewalld / Ufw / iptables 服务,请前往脚本库页面手动安装!” 这会导致一个问题:用户明明拥有系统自带的、官方推荐的nftables防火墙,却被面板提示“未检测到”并要求手动安装其他防火墙,体验上有些矛盾。
On Debian 12 and later versions, nftables is installed by default and recommended as the system firewall. However, after installing 1Panel on these systems, the firewall page shows: "Firewalld / Ufw / iptables service not detected, please go to the script library page to install it manually!" This creates a confusing experience: users already have the system-recommended nftables firewall, but the panel asks them to install another one manually.
Please describe the solution you suggest
希望1Panel能将原生支持nftables作为防火墙模块的下一个重点适配方向。让面板能够直接识别并使用系统自带的nftables,实现端口放行、端口转发等核心功能,无需用户额外安装其他防火墙。 用户在Debian 12等最新系统上可以开箱即用,不再看到“未检测到”或“不兼容”的提示,体验更顺畅。
I hope 1Panel can prioritize native nftables support for the firewall module. This would allow the panel to directly recognize and use the system's built-in nftables for core functions like port management and forwarding, without requiring users to install additional firewalls. Users on newer systems like Debian 12 can have a smooth out-of-the-box experience, without seeing "not detected" or "incompatible" messages.
Additional Information
No response
有计划的,但是先缓缓 排期忙不过来了 😂
安装ufw/iptables会和已安装的nftables冲突,导致进不去系统
ufw 实际上是依赖了 nft 或者 iptables 来实行功能的,nftables 和 iptables 其实在实际内核的网络数据包过滤 netfilter 也做了兼容层,双方规则不会冲突。
链条实际上是: ufw/firewalld(用易读和方便管理的操作命令管控) -- 下发命令 -> iptables/nftables -- 内核下发 --> netfilter (实际管控数据包的程序)
如果装了ufw/ipt导致进不去系统一般不是冲突问题,是某些操作清除了防火墙规则。而你的服务器默认网络操作可能是 DROP,装新的时候白名单放行规则清空导致直接断网。
本人小白,1Panel的iptables好像只支持IPv4,之前我不知道导致IPv6端口老泄漏。希望支持nftables能更好配置IPv6防火墙,感谢🙏
临时解决方案是安装 iptables-nft 兼容层
+1,现在连OpenResty都装不起来,报各种各样的iptabls错误
第一次
iptables --wait -t nat -I DOCKER -i br-5c8c5e4976b7 -j RETURN
iptables: No chain/target/match by that name.
尝试手动添加后,第二次
iptables --wait -I FORWARD -o br-cbc089c480fe -j DOCKER
iptables v1.8.4 (nf_tables): Chain 'DOCKER' does not exist