1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

a couple minor changes to Fail2Ban #870 fixed a couple variables, copied owncloud.conf fail2ban from my own owncloud 9 server for my own business. Though it is commented out

This commit is contained in:
ChiefGyk
2016-06-26 13:37:21 -04:00
parent 933668f156
commit ab3fbad0b8
3 changed files with 11 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ action = iptables-allports[name=recidive]
# enabled = true
# filter = owncloud
# action = sendmail-whois-lines[name=owncloud, dest="<USER>@<DOMAIN>.<TLD>,<USER2>@<DOMAIN2>.<TLD2>,fail2ban@blocklist.de", sender=fail2ban@box.<SERVER>.<TLD>, sendername="Fail2Ban"]
# logpath = /home/user-data/owncloud/owncloud.log
# logpath = STORAGE_ROOT/owncloud/owncloud.log
# maxretry = 20
# findtime = 300
# bantime = 300
@@ -99,7 +99,7 @@ enabled = true
port = http,https
filter = miab-owncloud
# action = sendmail-whois-lines[name=miab-owncloud, dest="<USER>@<DOMAIN>.<TLD>,<USER2>@<DOMAIN2>.<TLD2>,fail2ban@blocklist.de", sender=fail2ban@box.<SERVER>.<TLD>, sendername="Fail2Ban"]
logpath = /home/user-data/owncloud/owncloud.log
logpath = STORAGE_ROOT/owncloud/owncloud.log
maxretry = 20
findtime = 30

View File

@@ -0,0 +1,8 @@
[INCLUDES]
before = common.conf
[Definition]
_daemon = owncloud
failregex = {"reqId":".*","remoteAddr":".*","app":"core","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)","level":2,"time":".*","method":".*}
ignoreregex =