Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Jan 4, 2021
1 parent eff5957 commit 50267c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ nextcloud_occ config:system:set logtimezone --value="$(cat /etc/timezone)"
# 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":".*"}$
^{"reqId":".*","level":2,"time":".*","remoteAddr":".*","app":"core".*","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)".*}$
^.*\"remoteAddr\":\"<HOST>\".*Trusted domain error.*\$
failregex = Login failed.*Remote IP.*<HOST>
ignoreregex =
NCONF

# Create jail.local file
Expand Down

0 comments on commit 50267c6

Please sign in to comment.