==================================================================================== === Разбанить ip: ==================================================================================== # fail2ban-client set $JAIL_NAME unbanip $IP ==================================================================================== === Получить информацию о jail: ==================================================================================== # fail2ban-client status $JAIL_NAME ==================================================================================== === Настроить новый jail: ==================================================================================== # == vi /etc/fail2ban/jail.local == [nginx-40x] enabled = true port = http,https filter = nginx-40x logpath = /var/log/nginx/*access.log action = iptables-multiport[name=40x, port="http,https", protocol=tcp] maxretry = 10 findtime = 90 bantime = 7200 == vi /etc/fail2ban/filter.d/nginx-40x.conf== [Definition] failregex = ^.*"(GET|POST).*" (401|403|404) .*$ ignoreregex = systemctl restart fail2ban