From 5832dc592761147a607a3ba35af8715c9adb0527 Mon Sep 17 00:00:00 2001 From: heqnx Date: Mon, 23 Jun 2025 10:24:15 +0300 Subject: added sshd fail2ban --- files/fail2ban/jail.d/sshd.local | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 files/fail2ban/jail.d/sshd.local (limited to 'files') diff --git a/files/fail2ban/jail.d/sshd.local b/files/fail2ban/jail.d/sshd.local new file mode 100644 index 0000000..534b62e --- /dev/null +++ b/files/fail2ban/jail.d/sshd.local @@ -0,0 +1,9 @@ +[sshd] +enabled = true +mode = aggressive +port = ssh +backend = systemd +action = iptables-allports[name=sshd, protocol=all] +bantime = 24h +maxretry = 3 +findtime = 600 -- cgit v1.2.3