mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-11-30 15:14:48 +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>
15 lines
567 B
YAML
15 lines
567 B
YAML
letsencrypt_validation_dir: "/var/lib/letsencrypt"
|
|
nginx_firewall_zone:
|
|
nginx_extra_modules: []
|
|
nginx_enable_http3: false
|
|
nginx_stream: false
|
|
# enable the L4 stream front-proxy that denies banned client IPs (by their real
|
|
# IP from the PROXY protocol) before TLS termination, fed by the fail2ban
|
|
# nginx-stream-deny action. implies a stream{} block and requires a proxy
|
|
# vendor / upstream host. see docs/haproxy.md.
|
|
nginx_stream_deny: false
|
|
# a single proxy like a Hetzner LoadBalancer
|
|
nginx_proxy_protocol_upstream_host:
|
|
# a vendor like haproxy
|
|
nginx_proxy_vendor:
|