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/12/07 02:39:27 UTC

[GitHub] [apisix] kellyseeme opened a new issue, #8468: how to set the client ip to upstream server

kellyseeme opened a new issue, #8468:
URL: https://github.com/apache/apisix/issues/8468

   ### Description
   
   when i use the stream_proxy,TLS over TCP connection,the upstream all is the apisix ip address,how to transport the client real ip to upstream server?
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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] shreemaan-abhishek commented on issue #8468: how to set the client ip to upstream server

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1708135354

   @kellyseeme is your query resolved? Can we close this now?


-- 
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] tzssangglass commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1347938292

   > maybe not the same,i want to use the proxy_protocol,but can't find to set ,but not affect:
   
   According to your description, proxy_bind is what you need.


-- 
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] github-actions[bot] commented on issue #8468: how to set the client ip to upstream server

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1742028258

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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] tzssangglass commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1340924896

   from https://github.com/apache/apisix/blob/5822eca9a28ff7b92dc7fc0431281eb62dd60ba8/apisix/cli/ngx_tpl.lua#L208-L210
   
   I think I think the indentation is wrong here https://github.com/apache/apisix/blob/5822eca9a28ff7b92dc7fc0431281eb62dd60ba8/conf/config-default.yaml#L37-L44
   
   it should be:
   
   ```yaml
     #proxy_protocol:                  # Proxy Protocol configuration
       #listen_http_port: 9181           # The port with proxy protocol for http, it differs from node_listen and admin_listen.
                                       # This port can only receive http request with proxy protocol, but node_listen & admin_listen
                                       # can only receive http request. If you enable proxy protocol, you must use this port to
                                       # receive http request with proxy protocol
       #listen_https_port: 9182          # The port with proxy protocol for https
       #enable_tcp_pp: true              # Enable the proxy protocol for tcp proxy, it works for stream_proxy.tcp option
       #enable_tcp_pp_to_upstream: true  # Enables the proxy protocol to the upstream server
   ```
   
   cc @spacewander 


-- 
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] github-actions[bot] commented on issue #8468: how to set the client ip to upstream server

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1738848909

   Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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] tzssangglass commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1340346377

   ref: https://github.com/apache/apisix/discussions/8124#discussioncomment-3942200
   
   Try the nginx directive proxy_bind. It may help you.


-- 
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] kellyseeme commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
kellyseeme commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1340468396

   maybe not the same,i want to use the  proxy_protocol,but  can't find to set ,but not affect:
     enable_tcp_pp: true
     enable_tcp_pp_to_upstream: true


-- 
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] spacewander commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1342109380

   This is an indent error in the comment.
   
   @tzssangglass 
   Would you submit a PR to fix it? Thanks!


-- 
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] tzssangglass commented on issue #8468: how to set the client ip to upstream server

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #8468:
URL: https://github.com/apache/apisix/issues/8468#issuecomment-1340921788

   > enable_tcp_pp: true
   > enable_tcp_pp_to_upstream: true
   
   what is the full configuration?


-- 
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] github-actions[bot] closed issue #8468: how to set the client ip to upstream server

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8468: how to set the client ip to upstream server
URL: https://github.com/apache/apisix/issues/8468


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