tokers commented on issue #8041:
URL: https://github.com/apache/apisix/issues/8041#issuecomment-1287990273

   > stream_proxy tcp代理转发时,请问可以通过哪种方式使得上游服务受到的源ip 保持不变?
   > 
   > 我配置的规则如下:
   > 
   > curl http://127.0.0.1:9180/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
ef403f335dce4906a2962b8f015a6d2d' -X PUT -d '
   > 
   > {
   > 
   >     "server_port":80,
   > 
   >      "scheme":"http",
   > 
   >     "upstream": {
   > 
   >         "nodes": {
   > 
   >             "上游服务ip:80": 1
   > 
   >         },
   > 
   >         "type": "roundrobin",
   > 
   >         "pass_host": "pass"
   > 
   >     }
   > 
   > }'
   > 
   > 
   > 
   > 但上游服务收到的proxy_add_x_forwarded_for始终为apisix 所在服务器ip。麻烦帮忙解答下,谢谢。
   > 
   > 
   
   This issue is not relevant to your question. Please delete it and open 
another issue to describe your question.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to