From fea9ee54cb9cbaa727bf692c227fe389c49c6551 Mon Sep 17 00:00:00 2001 From: Denis Chevalier Date: Thu, 6 Aug 2026 12:56:47 +0200 Subject: add fail2ban --- etc/fail2ban/sshd.local | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 etc/fail2ban/sshd.local (limited to 'etc') diff --git a/etc/fail2ban/sshd.local b/etc/fail2ban/sshd.local new file mode 100644 index 0000000..89f16ec --- /dev/null +++ b/etc/fail2ban/sshd.local @@ -0,0 +1,19 @@ +[DEFAULT] +# Use UFW to execute IP bans +banaction = ufw + +# Read logs directly from systemd journal (required for Arch Linux) +backend = systemd + +# Ignore local traffic +ignoreip = 127.0.0.1/8 ::1 192.168.1.0/24 + +# Ban parameters +findtime = 10m +maxretry = 4 +bantime = 1h + +[sshd] +enabled = true +port = 22 +mode = normal -- cgit