homeserver/roles/mgrote_fail2ban/templates/jail.local

28 lines
547 B
Text
Raw Permalink Normal View History

{{ file_header | default () }}
2020-08-18 11:57:53 +02:00
[DEFAULT]
ignorself = true
ignoreip = 127.0.0.1/8 ::1
bantime = {{ f2b_bantime }}
findtime = {{ f2b_findtime }}
maxretry = {{ f2b_maxretry }}
# Mail Reporting
destemail = {{ f2b_destemail }}
sender = {{ f2b_sender }}
2020-08-18 11:57:53 +02:00
# to ban & send an e-mail with whois report to the destemail.
#action = %(action_mw)s
# same as action_mw but also send relevant log lines
{% if f2b_send_email_report %}
2020-08-18 11:57:53 +02:00
action = %(action_mwl)s
{% endif %}
2020-08-18 11:57:53 +02:00
# JAILS
[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log