Ok i just test it and it doesn't hit
Log file request is:
Quote:
123.456.789.000 - - [20/Aug/2017:07:33:34 +0000] "GET /software-wvs-test-for-some-inexistent-file HTTP/1.1" 404 6379 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21
|
My /etc/fail2ban/jail.local entry is:
Quote:
[nginx-software]
enabled = true
filter = nginx-software
action = csfdeny[name=nginx-software]
logpath = /home/nginx/domains/*/log/access.log
/usr/local/nginx/logs/*access*.log
bantime = 604800
maxretry = 1
|
And my software config nginx-software.conf is:
Quote:
[Definition]
# Notes : Block Software
failregex = ^<HOST> .* ".*?(?i)GET /software-wvs-test-for-some-inexistent-file.*?"
ignoreregex =
|