[Bug] iptables Rule Persistence and Restoration Order Issues
维护者通常 1 天内回复
@ssongliu 已经在做这个了。
开始于 2026年10月14日。
评估
这个 Issue 还没有评估数据。
描述
Contact Information
当前 iptables 规则恢复只考虑了 1panel 自己,未考虑 fail2ban 规则
1Panel Version
v2.3.2
Problem Description
系统未开启ufw和firewalld,重启系统后,端口 ssh 22 等会被 1PANEL_BASIC_BEFORE 放行,重启 fail2ban 才能恢复正常拦截
Steps to Reproduce
┌💁 alice @ 💻 Alice in 📁 ~
└❯ sudo iptables -nvL INPUT --line-numbers
Chain INPUT (policy ACCEPT 352 packets, 25932 bytes)
num pkts bytes target prot opt in out source destination
1 11991 5846K 1PANEL_BASIC_BEFORE all -- * * 0.0.0.0/0 0.0.0.0/0
2 824 41910 1PANEL_BASIC all -- * * 0.0.0.0/0 0.0.0.0/0
3 324 13482 1PANEL_BASIC_AFTER all -- * * 0.0.0.0/0 0.0.0.0/0
4 38 11326 f2b-sshd tcp -- * * 0.0.0.0/0 0.0.0.0/0
┌💁 alice @ 💻 Alice in 📁 ~
└❯ sudo systemctl restart fail2ban
┌💁 alice @ 💻 Alice in 📁 ~
└❯ sudo iptables -nvL INPUT --line-numbers
Chain INPUT (policy ACCEPT 389 packets, 27168 bytes)
num pkts bytes target prot opt in out source destination
1 79 19620 f2b-sshd tcp -- * * 0.0.0.0/0 0.0.0.0/0
2 12585 5978K 1PANEL_BASIC_BEFORE all -- * * 0.0.0.0/0 0.0.0.0/0
3 928 47498 1PANEL_BASIC all -- * * 0.0.0.0/0 0.0.0.0/0
4 363 15306 1PANEL_BASIC_AFTER all -- * * 0.0.0.0/0 0.0.0.0/0
The expected correct result
No response
Related log output
Additional Information
No response
- 主要语言
- Go
- 星标
- 37.1k
- 派生
- 3.4k
- 平均合并
- 11 小时 49 分钟
- 30 天内合并 PR
- 94
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
1Panel-dev/1Panel 的其他 Issue
-
[Feature] Country (GeoIP) based rules in firewall for TCP/UDP ports可能已有人在做 @wanghe-fit2cloud 于 1 天前认领。 未关闭
1Panel-dev/1Panel#14087 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] Unable to Configure the Website Directory When Installing OpenResty可能已有人在做 @wanghe-fit2cloud 于 1 天前认领。 未关闭type: question
1Panel-dev/1Panel#14084 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Add RPM, QPS, and TPM Limits to AI Gateway可能已有人在做 @wanghe-fit2cloud 于 1 天前认领。 未关闭type: ai-gateway
1Panel-dev/1Panel#14081 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] Revoked API Keys Cannot Be Deleted可能已有人在做 @wanghe-fit2cloud 于 2 天前认领。 未关闭type: feature-request
1Panel-dev/1Panel#14074 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] The UI language switches to English after deleting a child node in multi-node management可能已有人在做 @wanghe-fit2cloud 于 2 天前认领。 未关闭status: dev-complete status: ready-for-release type: optimization
1Panel-dev/1Panel#14073 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 1Panel-dev/1Panel 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
copilot-api domain:platform go
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skill可能已有人在做 @MatiasOlivera 今天认领。 未关闭enhancement
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
aws/aws-advanced-go-wrapper#612 ·
-
Say in the changelog that the text-index update cannot be rolled back可能已有人在做 @praetorianer777 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
praetorianer777/GoTome#275 ·
维护者通常 1 天内回复