From e1fed7d07ba50a39fe1342b43276944c3af49727 Mon Sep 17 00:00:00 2001 From: Void-Deer Date: Tue, 31 Mar 2026 02:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9gitignore=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E6=8A=8Avscode=E8=AE=BE=E7=BD=AE=E4=BC=A0=E4=B8=8A?= =?UTF-8?q?=E5=8E=BB=EF=BC=9B=E5=88=A0=E6=8E=89=E4=B8=80=E4=B8=AA=E5=92=8C?= =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=97=A0=E5=85=B3=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + jail.local | 26 -------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) create mode 100644 .gitignore delete mode 100644 jail.local diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbe9c82 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/ \ No newline at end of file diff --git a/jail.local b/jail.local deleted file mode 100644 index 08527d4..0000000 --- a/jail.local +++ /dev/null @@ -1,26 +0,0 @@ -# Fail2ban 本地自定义配置 -# 目标:SSH 在 20 分钟内失败超过 3 次即封禁;封禁时间从 1 分钟开始, -# 按激进倍率增长,最多到 28 天,并混入最多 3600 秒随机时间。 - -[INCLUDES] -before = paths-debian.conf - -[DEFAULT] -# 20 分钟内累计 4 次失败时触发封禁 -findtime = 20m -maxretry = 4 - -# 初始封禁 1 分钟,后续按倍率递增 -bantime = 1m -bantime.increment = true -bantime.rndtime = 3600 -bantime.maxtime = 2419200 - -# 12 级递增,最终封顶到 28 天 -bantime.multipliers = 1 2 4 8 16 32 64 128 256 1024 10080 40320 - -[sshd] -enabled = true -port = ssh -logpath = %(sshd_log)s -backend = %(sshd_backend)s