You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this will probably be too hard to do with the current openssl based implementation, so we will need to wait on #145 to get a more flexible TLS implementation based on rustls.
For the context, in openssl, you give a callback to find which certificate to send based on the SNI extension. From that callback, it would not be possible to do a passthrough to the backend, since openssl already manages the stream.
Proxying TLS without terminating it is supported: a protocol = "tcp" listener can route several clusters on one address by pre-reading the ClientHello's SNI (and optionally ALPN), without decrypting — #1290, documented in the TCP SNI section of doc/configure.md (sni_preread_timeout, sni_preread_max_bytes, frontend hostname / alpn), implemented by the SniPreread state in lib/src/tcp.rs, covered by e2e/src/tests/tcp_sni_tests.rs. Single-cluster TCP passthrough predates it. Closing as completed.
Activity
Geal commentedon Apr 16, 2017
this will probably be too hard to do with the current openssl based implementation, so we will need to wait on #145 to get a more flexible TLS implementation based on rustls.
For the context, in openssl, you give a callback to find which certificate to send based on the SNI extension. From that callback, it would not be possible to do a passthrough to the backend, since openssl already manages the stream.
KellerFuchs commentedon Apr 17, 2017
@ctx Is matching SNI without terminating the whole TLS stream doable with rustls?
That would be pretty neat :)
Geal commentedon Apr 30, 2017
it might be doable by reusing this nom TLS parser: https://github.com/rusticata/tls-parser
Then the proxy would only read the beginning of the communication, route based on the named then just splice calls back and forth
Geal commentedon Jun 5, 2019
I started to work on it in the
peek-snibranch, but it will have to wait until #588 is doneFlorentinDUBOIS commentedon Sep 29, 2026
Proxying TLS without terminating it is supported: a
protocol = "tcp"listener can route several clusters on one address by pre-reading the ClientHello's SNI (and optionally ALPN), without decrypting — #1290, documented in the TCP SNI section of doc/configure.md (sni_preread_timeout,sni_preread_max_bytes, frontendhostname/alpn), implemented by theSniPrereadstate in lib/src/tcp.rs, covered bye2e/src/tests/tcp_sni_tests.rs. Single-cluster TCP passthrough predates it. Closing as completed.