tidb6.5 版本ip透传无效
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
我部署了一套tidb3集群。tidb-server ip部署在192.168.46.33/192.168.46.34/192.168.46.35 三台服务器。同时我在192.168.46.10部署了haporoxy2.2版本。
tidb配置如下:tiup cluster edit-config tidb-test

haproxy配置如下:

然后我通过192.168.46.101的mysql5.7.28的客户端远程连接:
mysql -uroot -p'*************' -h192.168.46.10 -P4001

现在显示的host一直是192.168.46.10而不是真实客户端ip192.168.46.101
Contributor guide
Research direction
Reproduce the reported connection through HAProxy 2.2 using the provided mysql client command, then inspect how TiDB records the connection host when traffic passes through the proxy. Done means determining whether the real client IP can be preserved and documenting or fixing the behavior accordingly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql
- Domain
- databases, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100