diff options
| author | Denis Chevalier <perso@denischevalier.fr> | 2026-08-06 12:56:47 +0200 |
|---|---|---|
| committer | Denis Chevalier <perso@denischevalier.fr> | 2026-08-06 12:56:47 +0200 |
| commit | fea9ee54cb9cbaa727bf692c227fe389c49c6551 (patch) | |
| tree | 79e98c2fc11dc0ae82388bdff915236fd5418db3 /etc | |
| parent | 144ea2008372126e494aa384c9f2a23248c75d45 (diff) | |
| download | postinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.tar.gz postinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.tar.bz2 postinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.zip | |
add fail2ban
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/fail2ban/sshd.local | 19 |
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 |
