FAIL2BAN - Filter.d - w00tw00t

From wiki.1001solutions.net


Filter.d

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

[Definition]
failregex = ^.*\[client <HOST>\] File does not exist: /var/www/w00tw00t\.at.*$
            ^.*\[client <HOST>\] .* /w00tw00t\.at.*$


Jail.conf

[w00tw00t]
#enabled = true
filter  = w00tw00t
port = http,https
banaction = iptables-allports
logpath  = /var/log/nginx/*access*.log
maxretry = 1
bantime = 999999999