Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2020-02-27 23:22:06 +0300
committerGitHub <noreply@github.com>2020-02-27 23:22:06 +0300
commit230e856ce88022e27936543541dbc312acfa984c (patch)
treea25d6a82f2563376bd4e8ebb9a13ccceb7a90d69 /apps/fail2ban.sh
parent58af15fce882e86778ba14da7881ab96aaf57806 (diff)
add comment
Diffstat (limited to 'apps/fail2ban.sh')
-rw-r--r--apps/fail2ban.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/fail2ban.sh b/apps/fail2ban.sh
index 694960de..4e25ccc7 100644
--- a/apps/fail2ban.sh
+++ b/apps/fail2ban.sh
@@ -83,6 +83,7 @@ occ_command config:system:set logfile --value="$NCLOG"
occ_command config:system:set logtimezone --value="$(cat /etc/timezone)"
# Create nextcloud.conf file
+# Test: failregex = Login failed.*Remote IP.*<HOST>
cat << NCONF > /etc/fail2ban/filter.d/nextcloud.conf
[Definition]
failregex=^{"reqId":".*","remoteAddr":".*","app":"core","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)","level":2,"time":".*"}$