请教关于客户端真实IP的问题
#1979
Replies: 2 comments 10 replies
-
你是用 |
Beta Was this translation helpful? Give feedback.
6 replies
-
enableProxyProtocol 主要是针对非 HTTP 的 TCP 请求的,你的请求是用 HTTP 的,可以用 X-Fowarded-For Header 来标识客户端。 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
现在的部署是内部局域网 k3s 部署 higress, 没有LB,手工给 higress-gateway 指定 IP,请求路径应该是 client(192.168.1.55) -> higress-ingress -> higress-gateway service(192.168.1.201) -> echo-service -> echo-pod
echo 服务获取不到真实 IP:
按照其它 issue 的讨论配置了 addXRealIpHeader: true / enableProxyProtocol: true 都无效,必须要在 gateway 上启用 externalTrafficPolicy: Local 才可以吗?
感谢🙏
Beta Was this translation helpful? Give feedback.
All reactions