FAIL2BAN - Filter.d - Nextcloud

From Wiki.IT-Arts.net


Definition

# /etc/fail2ban/filter.d/nextcloud.conf

[Definition]
# Option: failregex
# Filter Ban in /var/log/nginx/cloud.1001solutions.net.access.log
# Filter Ban in /var/log/nginx/nextcloud.1001solutions.net.access.log
#failregex = <HOST>$
failregex = ^(<HOST> - - .*index.php.*login.*user=.*)
#failregex = ^(<HOST> - - .*)


Jail.conf

[nextcloud]
enabled = true
port    = http,https
logpath = /var/log/nginx/*cloud.1001solutions.net.access.log