2021-08-01 08:56:43 +02:00
|
|
|
[nginx]
|
|
|
|
enabled = true
|
|
|
|
# See: /etc/fail2ban/filter.d/nginx-botsearch.conf
|
|
|
|
filter = nginx-botsearch
|
|
|
|
# Integrate with nftables
|
|
|
|
banaction=nftables[type=allports]
|
2022-01-04 14:10:02 +01:00
|
|
|
backend = pyinotify
|
2021-08-01 08:56:43 +02:00
|
|
|
logpath = /var/log/nginx/*-access.log
|
|
|
|
# Try to find a non-existent wp-login.php once and get banned. Tough luck.
|
|
|
|
maxretry = 1
|
|
|
|
findtime = {{ fail2ban_findtime }}
|
|
|
|
bantime = {{ fail2ban_bantime }}
|
|
|
|
ignoreip = {{ fail2ban_ignoreip }}
|