You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/18 03:12:54 UTC

[GitHub] [apisix-ingress-controller] hotbaby opened a new issue, #1166: request help: apisix ingress 获取remote_addr是本地网络设备CNI0的地址,应该如何配置,才能获取远端真实的客户端IP地址?

hotbaby opened a new issue, #1166:
URL: https://github.com/apache/apisix-ingress-controller/issues/1166

   ### Issue description
   
   要增加IP白名单限制,发现APISIX获取远程客户端的地址为本地网络设备CNI0的地址。
   
   ### Environment
   
   - your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
   - your Kubernetes cluster version (output of kubectl version):
   - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] hotbaby commented on issue #1166: request help: how to get client real-ip

Posted by GitBox <gi...@apache.org>.
hotbaby commented on issue #1166:
URL: https://github.com/apache/apisix-ingress-controller/issues/1166#issuecomment-1186763188

   > This is actually a Kubernetes knowledge. You can set `externalTrafficPolicy` for apisix-gateway service.
   
   谢谢大佬,修改externalTrafficPolicy为Local,解决了。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] hotbaby closed issue #1166: request help: how to get client real-ip

Posted by GitBox <gi...@apache.org>.
hotbaby closed issue #1166: request help: how to get client real-ip
URL: https://github.com/apache/apisix-ingress-controller/issues/1166


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1166: request help: apisix ingress 获取remote_addr是本地网络设备CNI0的地址,应该如何配置,才能获取远端真实的客户端IP地址?

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1166:
URL: https://github.com/apache/apisix-ingress-controller/issues/1166#issuecomment-1186736059

   This is actually a Kubernetes knowledge.
   You can set `externalTrafficPolicy` for apisix-gateway service.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org