diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-02-27 23:22:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 23:22:06 +0300 |
commit | 230e856ce88022e27936543541dbc312acfa984c (patch) | |
tree | a25d6a82f2563376bd4e8ebb9a13ccceb7a90d69 /apps/fail2ban.sh | |
parent | 58af15fce882e86778ba14da7881ab96aaf57806 (diff) |
add comment
Diffstat (limited to 'apps/fail2ban.sh')
-rw-r--r-- | apps/fail2ban.sh | 1 |
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":".*"}$ |