mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-03-23 13:14:12 +00:00
Update optimizations.sh
This commit is contained in:
@@ -97,9 +97,9 @@ apt install fail2ban -y
|
|||||||
touch /etc/fail2ban/filter.d/nextcloud.conf
|
touch /etc/fail2ban/filter.d/nextcloud.conf
|
||||||
cat <<EOF >/etc/fail2ban/filter.d/nextcloud.conf
|
cat <<EOF >/etc/fail2ban/filter.d/nextcloud.conf
|
||||||
[Definition]
|
[Definition]
|
||||||
failregex=^{"reqId":".*","remoteAddr":".*","app":"core","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)","level":2,"time":".*"}\$
|
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>'\)".*}\$
|
^{"reqId":".*","level":2,"time":".*","remoteAddr":".*","app":"core".*","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)".*}$
|
||||||
^.*\"remoteAddr\":\"<HOST>\".*Trusted domain error.*\$
|
^.*\"remoteAddr\":\"<HOST>\".*Trusted domain error.*\$
|
||||||
EOF
|
EOF
|
||||||
###create a fail2ban Nextcloud jail
|
###create a fail2ban Nextcloud jail
|
||||||
touch /etc/fail2ban/jail.d/nextcloud.local
|
touch /etc/fail2ban/jail.d/nextcloud.local
|
||||||
|
|||||||
Reference in New Issue
Block a user