Making Teleport's TLS routing/multiplexing work behind a HAProxy reverse proxy #43293
eric-belhomme
started this conversation in
Show and tell
Replies: 1 comment
-
Thank you for the write-up! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On a public instance with a single IP address, I wanted to share HTTPS between an existing Apache HTTPd server, and Teleport auth/proxy services
As explained on the TLS routing it is possible to put a reverse proxy in front of Teleport that inspects TLS ClientHello messages in SNI to correctly split incoming traffic destined for Teleport's web interface or its other listeners apart from traffic destined for another upstream service - all without terminating TLS at any point, allowing Teleport to effectively coexist on port 443 with an existing reverse proxy.
This was already explained discussion #19093 using nginx and its
stream
mode, but I wanted to achieve the same results using HAProxy intcp
mode as a replacement of nginx.Prerequisites
Teleport configuration
This is a typical Teleport setup with auth and proxy services enabled for TLS multiplex:
HAProxy configuration
The HAProxy configuration is directly inspired from this HAProxy's blog article
Beta Was this translation helpful? Give feedback.
All reactions