v.23.1Improvement

Better Support for PROXYv1 Protocol

Better support for PROXYv1 protocol. #44135 (Yakov Olkhovskiy).
Improved support for the PROXYv1 protocol in ClickHouse.

Why it matters

This feature enhances ClickHouse's ability to correctly handle incoming connections using the PROXYv1 protocol, which is commonly used to forward client connection information such as the original IP address and port. It improves accuracy in client identification and logging when ClickHouse is behind a proxy or load balancer.

How to use it

To use the improved PROXYv1 protocol support, ensure that your proxy or load balancer is configured to send PROXYv1 headers to ClickHouse. No additional user-side configuration in ClickHouse is required; the server will automatically parse and utilize the PROXYv1 headers upon receiving connections.