From 41ecc4aab844c3cbd43a233f2ab16f41d1aaae60 Mon Sep 17 00:00:00 2001 From: ChiefGyk Date: Tue, 28 Jun 2016 13:32:53 -0400 Subject: [PATCH] Adds Fail2ban jails for nginx-http-auth, nginx-badbots, and owncloud, also needed to add original author credit to nginxjails --- conf/fail2ban/nginx-http-auth.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/fail2ban/nginx-http-auth.conf b/conf/fail2ban/nginx-http-auth.conf index 5f89b3a4..9a1b44f2 100644 --- a/conf/fail2ban/nginx-http-auth.conf +++ b/conf/fail2ban/nginx-http-auth.conf @@ -4,4 +4,11 @@ failregex = ^ \[error\] \d+#\d+: \*\d+ user "\S+":? (password mismatch|was not found in ".*"), client: , server: \S+, request: "\S+ \S+ HTTP/\d+\.\d+", host: "\S+"\s*$ ^ \[error\] \d+#\d+: \*\d+ no user/password was provided for basic authentication, client: , server: \S+, request: "\S+ \S+ HTTP/\d+\.\d+", host: "\S+"\s*$ -ignoreregex = \ No newline at end of file +ignoreregex = + +# DEV NOTES: +# Based on samples in https://github.com/fail2ban/fail2ban/pull/43/files +# Extensive search of all nginx auth failures not done yet. +# +# Author: Daniel Black +# Second entry done by Alon "ChiefGyk" Ganon alon@ganon.me \ No newline at end of file