SSL DND(Donot Decrypt)

In SSL-DND mode, the proxy operates as a transparent Layer 4 tunnel. It utilizes the standard HTTP CONNECT method to establish a bi-directional byte-stream between the client and the destination without terminating the TLS session.

Key Characteristics

* Zero Visibility: The proxy does not possess the destination's private keys and cannot inspect the encrypted payload.
* End-to-End Integrity: The TLS handshake occurs directly between the client and the remote server, ensuring that certificate validation and encryption remains unbroken.
* SNI-Based Routing: While the payload is opaque, the proxy uses the Host header from the CONNECT request (and optionally the SNI in the Client Hello) to perform DNS resolution and routing.

Flow

There are 2 distinct TCP legs.
1. Inbound Leg: Proxy accepts a TCP connection on the listener port and parses the initial HTTP CONNECT header.
2. Resolution: Proxy performs an asynchronous DNS lookup for the requested target.
3. Outbound Leg: Proxy initiates a secondary TCP handshake with the target IP on the external interface (eth0).
4. Promotion: Upon successful upstream connection, the proxy returns 200 Connection Established and promotes the sockets to a bi-directional "pipe."
SSL_DND