mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-11-06 22:28:49 +01:00
Behind the HAProxy ADN every packet arrives from an allowlisted ADN IP, so an L3/L4 ban issued by fail2ban that targets the real client IP never matches. Add an opt-in L4 stream front-proxy (nginx_stream_deny) that terminates the PROXY protocol, denies banned clients by their real IP before TLS is terminated, then re-emits the PROXY protocol to loopback http listeners so the real client IP is preserved. Related-to: https://gitlab.archlinux.org/archlinux/infrastructure/-/work_items/766 Assisted-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Christian Heusel <christian@heusel.eu>