Files
aurbis/tasks/fail2ban/sshd.local.j2
T
2026-09-03 22:11:57 +02:00

15 lines
455 B
Django/Jinja

[DEFAULT]
backend = systemd
banaction = nftables-multiport
banaction_allports = nftables-allports
ignoreip = {{ (['127.0.0.1/8', '::1'] + fail2ban_ignoreip | default([])) | join(' ') }}
bantime = {{ fail2ban_bantime | default('1h') }}
bantime.increment = true
bantime.maxtime = {{ fail2ban_bantime_max | default('1w') }}
findtime = {{ fail2ban_findtime | default('10m') }}
maxretry = {{ fail2ban_maxretry | default(5) }}
[sshd]
enabled = true
port = ssh