Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions root/defaults/fail2ban/filter.d/nginx-deny.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# fail2ban filter configuration for nginx


[Definition]


failregex = ^ \[error\] \d+#\d+: \*\d+ (access forbidden by rule), client: <HOST>, server: \S*, request: "\S+ \S+ HTTP\/\d+\.\d+", host: "\S+"(?:, referrer: "\S+")?\s*$

ignoreregex =

datepattern = {^LN-BEG}

# DEV NOTES:
#
# Author: Will L (driz@linuxserver.io)
7 changes: 7 additions & 0 deletions root/defaults/jail.local
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ enabled = true
port = http,https
filter = nginx-botsearch
logpath = /config/log/nginx/access.log

[nginx-deny]

enabled = true
port = http,https
filter = nginx-deny
logpath = /config/log/nginx/error.log