Rename fail2ban syslog 'rainloop' to 'snappymail'

This commit is contained in:
djmaze 2020-09-30 14:31:12 +02:00
parent 0a95e2c6dc
commit 98c6fa0675
10 changed files with 21 additions and 21 deletions

View file

@ -8,12 +8,12 @@ If you use other ports then http, https & 2096, modify them in /filter.d/*.conf
Upload the following to /etc/fail2ban/*
- /filter.d/rainloop-fpm-journal.conf
- /jail.d/rainloop-fpm-journal.conf
- /filter.d/snappymail-fpm-journal.conf
- /jail.d/snappymail-fpm-journal.conf
Modify your /etc/fail2ban/jail.local with:
<code>[rainloop-fpm-journal]<br/>
<code>[snappymail-fpm-journal]<br/>
enabled = true</code>
## Default log (not recommended)
@ -26,14 +26,14 @@ auth_logging_filename = "fail2ban/auth-fail.log"<br/>
auth_logging_format = "[{date:Y-m-d H:i:s T}] Auth failed: ip={request:ip} user={imap:login} host={imap:host} port={imap:port}"
</code>
Modify the path in /jail.d/rainloop-log.conf
Modify the path in /jail.d/snappymail-log.conf
Upload the following to /etc/fail2ban/*
- /filter.d/rainloop-log.conf
- /jail.d/rainloop-log.conf
- /filter.d/snappymail-log.conf
- /jail.d/snappymail-log.conf
Modify your /etc/fail2ban/jail.local with:
<code>[rainloop-log]<br/>
<code>[snappymail-log]<br/>
enabled = true</code>

View file

@ -5,4 +5,4 @@ failregex = Auth failed: ip=<HOST> user=.*$
ignoreregex =
_daemon = php-fpm
journalmatch = _SYSTEMD_UNIT=php-fpm.service SYSLOG_FACILITY=10
#journalmatch = _SYSTEMD_UNIT=php-fpm.service SYSLOG_FACILITY=10 SYSLOG_IDENTIFIER=rainloop PRIORITY=3
#journalmatch = _SYSTEMD_UNIT=php-fpm.service SYSLOG_FACILITY=10 SYSLOG_IDENTIFIER=snappymail PRIORITY=3

View file

@ -1,5 +0,0 @@
[rainloop-fpm-journal]
filter = rainloop-fpm-journal
port = http,https,2096
backend = systemd
maxretry = 3

View file

@ -1,5 +0,0 @@
[rainloop-log]
filter = rainloop-log
port = http,https,2096
logpath = /PATH-TO-RAINLOOP-DATA/_data_/_default_/logs/fail2ban/auth-fail.log
maxretry = 3

View file

@ -0,0 +1,5 @@
[snappymail-fpm-journal]
filter = snappymail-fpm-journal
port = http,https,2096
backend = systemd
maxretry = 3

View file

@ -0,0 +1,5 @@
[snappymail-log]
filter = snappymail-log
port = http,https,2096
logpath = /PATH-TO-SNAPPYMAIL-DATA/_data_/_default_/logs/fail2ban/auth-fail.log
maxretry = 3