summaryrefslogtreecommitdiffstats
path: root/roles/common/templates/etc/fail2ban/jail.local.j2
blob: 29b004ce0c296476e46275e19eca60b413542c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# {{ ansible_managed }}
# Do NOT edit this file directly!

[DEFAULT]

# Destination email address used solely for the interpolations in
# jail.{conf,local} configuration files.
destemail = admin@fripost.org

# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
# will not ban a host which matches an address in this list. Several addresses
# can be defined using space (and/or comma) separator.
ignoreip = 127.0.0.0/8, ::1, {{ ipsec_subnet }}

banaction = nftables-allports
logpath = /var/log/fail2ban/fail2ban.log

#
# JAILS
#

[sshd]
enabled = true

[postfix]
enabled = {{ 'MX' in group_names }}

[dovecot]
enabled = {{ 'IMAP' in group_names }}

[postfix-sasl]
enabled  = {{ 'MSA' in group_names }}

[roundcube-auth]
enabled = {{ 'webmail' in group_names }}
# XXX Bullseye: logpath = /var/log/roundcube/errors.log

[nextcloud]
enabled = {{ 'nextcloud' in group_names }}
port    = http,https
filter  = nextcloud
logpath = /var/log/nextcloud/nextcloud.log

# vim: set filetype=dosini :