From 612651bf3f944258852c0a535fac417bb172444c Mon Sep 17 00:00:00 2001 From: wwya Date: Sun, 5 Apr 2026 16:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20fail2ban/jail.d/sshd.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fail2ban/jail.d/sshd.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fail2ban/jail.d/sshd.conf diff --git a/fail2ban/jail.d/sshd.conf b/fail2ban/jail.d/sshd.conf new file mode 100644 index 0000000..39dc23e --- /dev/null +++ b/fail2ban/jail.d/sshd.conf @@ -0,0 +1,11 @@ +[sshd] +enabled = true +port = 22 +filter = sshd +maxretry = 3 +findtime = 60 +#bantime = 86400 +bantime = 7d +action = iptables-multiport +logpath = /var/log/auth.log +backend = polling