Haproxy cannot pass through the real client IP

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Haproxy无法透传客户端真实ip

| username: TiDBer_vC2lhR9G

[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?

| username: Billmay表妹 | Original post link

You can take a look at this~

| username: tidb菜鸟一只 | Original post link

It seems that version 6.5 has this issue. Now that version 6.6 is out, I suggest deploying it in a test environment to try it out.

| username: GangShen | Original post link

v6.5.1 has relevant fixes. You can try upgrading to v6.5.1 to see if it resolves the issue.

| username: TiDBer_vC2lhR9G | Original post link

Cousin, this is a version issue.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.