Ghostunnel

A simple TLS proxy with mutual authentication support

How It Works

Ghostunnel is a TLS proxy with mutual authentication support for securing non-TLS services. It sits in front of (or alongside) a backend service and handles the TLS layer, so the service itself never has to.

Server mode

TLSghostunnelplaintext

Accepts TLS connections and forwards them as plaintext to a backend. Terminate mutual TLS in front of services that don't speak it.

Client mode

plaintextghostunnelTLS

Accepts plaintext connections on a TCP or UNIX socket and forwards them over TLS to a remote service. Add client certificates to anything.

Key Features

Ghostunnel also supports PROXY protocol v2, has a status port with rich metrics, can be tuned with connection limits and timeouts, supports systemd/launchd socket activation, and more. See the docs for details.

Getting Started

See the Quick Start guide for installation, generating test certificates, and running your first tunnel. The full documentation is available under Docs. Pre-built binaries are available on the Releases page and via Docker. See Docker Images for available image variants.