Skip to content

Dose Stream Proxy support to proxy TCP with TLS to upstream, TLS handshake on upstream side? #8728

Answered by pg-yang
pg-yang asked this question in Q&A
Discussion options

You must be logged in to vote

OK, By debugging source code. APISIX parse SNI through ngx_ssl.server_name(). openresty ssl mentioned that the API is for controlling NGINX downstream SSL handshakes, Which means openresty must do TLS handshake itself.
Another way to parse SNI is by ngx.req.socket in preread_by_lua_block, but as mentioned in the doc, the consumed data couldn't be re-consumer.
Finally, envoy sni_dynamic_forward_proxy_filter could achieve my requirements.
Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pg-yang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant