Skip to content

Instantly share code, notes, and snippets.

@git001
Created June 19, 2024 18:29
Show Gist options
  • Save git001/ba75a3cb87782163337b413e793cf740 to your computer and use it in GitHub Desktop.
Save git001/ba75a3cb87782163337b413e793cf740 to your computer and use it in GitHub Desktop.
Upstream-proxy Sequence diagram

Sequence diagram

sequenceDiagram

  participant CL AS Client
  participant HA AS HAProxy
  participant UP AS Upstream Proxy
  participant DS AS Destination Server

  CL->>HA: Connect to HAProxy Proxy via TCP<br/>SNI is used for routing
  HA->>UP: Connect to Upstream Proxy via TCP
  HA->>UP: Send "CONNECT" and some other<br/>Upstream Proxy header
  UP->>DS: Connect to Destination Server
  DS->>UP: Successful connection to Destination Server
  HA->>DS: Successful Proxy Tunnel
  CL->>DS: TLS Handshake with the SNI from the Client
  Note over DS,CL: TLS Traffic
  CL->>DS: Closes connection
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment