Preparation for fail2ban script

This commit is contained in:
2019-12-12 20:58:06 +01:00
parent 6cfcee6d20
commit 790ba88d7d
6 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
[ip-blacklist]
enabled = true
banaction = iptables-allports
port = anyport
filter = ip-blacklist
logpath = /etc/fail2ban/ip.blacklist
maxretry = 0
#findtime = 15552000
findtime = 600
# infinite ban
#bantime = -1
# 1 day ban
#bantime = 86400
# 2 day ban
bantime = 172800
# 10 minute ban
#bantime = 600

View File

@@ -0,0 +1,6 @@
[dovecot]
enabled = true
port = pop3,pop3s,imap,imaps
filter = dovecot
logpath = /var/log/mail.info
maxretry = 3

View File

@@ -0,0 +1,8 @@
[nextcloud]
enabled = true
logpath = /var/nc_data/nextcloud.log
port = http,https
filter = nextcloud
maxretry = 3
# 1 day ban
bantime = 86400