Files
reverse-proxy/scripts/security/fail2ban/haproxy-zabbix-403.conf
T
PTah ade8e4cafa fix(haproxy): Autodiscover на :80 и точный fail2ban для Zabbix
Outlook при настройке ext.kalinamall.ru слал GET /autodiscover/autodiscover.xml на порт 80; старый fe_http_zabbix отвечал 403 всем не-zabbix Host, fail2ban банил клиента на сутки. fe_http проксирует Autodiscover на Exchange :80, 403 только для zabbix вне allowlist, ignoreregex для /autodiscover/.
2026-06-20 16:58:32 +10:00

9 lines
446 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Definition]
# 403 на fe_http только при доступе к Zabbix с IP вне zabbix-allowed.
# Autodiscover (Outlook) и прочие Host на :80 больше не получают 403 — см. haproxy.cfg fe_http.
failregex = ^.*haproxy\[(?:\d+|master)\]: <HOST>:\d+ \[[^\]]+\] fe_http .* 403
# Подстраховка: не банить HTTP Autodiscover, если в логе всё ещё 403
ignoreregex = /autodiscover/