Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: Haproxy无法透传客户端真实ip

[Test Environment for TiDB]
[TiDB Version] v6.5
[Encountered Issue: Phenomenon and Impact]
According to the documentation, using HAProxy to proxy and pass through the original IP seems to be ineffective in version v6.5. The same configuration worked fine in v5.4. The TiDB parameter level has already added proxy-protocol.networks
, and HAProxy has also added send-proxy
.
[Resource Configuration]
It seems that there is a similar issue on GitHub, but no solution has been found yet. proxy-protocol.networks doesn't work as expected · Issue #41526 · pingcap/tidb · GitHub
Does anyone have any solutions?