Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] iptables Rule Persistence and Restoration Order Issues

オープン
#14,019 コメント 2 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ssongliu がすでに取り組んでいます。

2026年10月14日 から。

評価

この issue はまだ評価されていません。

説明

status: dev-complete status: ready-for-release type: optimization
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分
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

1Panel-dev/1Panel のほかの issue

1Panel-dev/1Panel の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。