summaryrefslogtreecommitdiff
path: root/etc/fail2ban/sshd.local
diff options
context:
space:
mode:
Diffstat (limited to 'etc/fail2ban/sshd.local')
-rw-r--r--etc/fail2ban/sshd.local19
1 files changed, 19 insertions, 0 deletions
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