pvc-ansible/roles/base/templates/etc/fail2ban/jail.d/sshd.local.j2

12 lines
235 B
Django/Jinja

[DEFAULT]
maxretry = 3
bantime = 14400
ignoreip = 127.0.0.0/8 {% for ignore in fail2ban_ignorelist %}{{ ignore }} {% endfor %}
[ssh]
enabled = true
filter = sshd
action = route
logpath = /var/log/auth.log