Features

Stunnel is a general-purpose TLS offloading and load-balancing proxy. Available features depend on the operating system, the linked OpenSSL library, and build-time options. Run stunnel -version to inspect a particular installation.

TLS and DTLS Proxying

Authentication and Trust

See the authentication guide for secure configuration examples.

Cryptographic Policy

The defaults provided by current stunnel and OpenSSL releases are recommended unless a documented security or interoperability policy requires an override.

OpenSSL Integration

Providers are preferred for new OpenSSL 3 integrations. Engines remain useful for compatibility with existing deployments.

Routing, Load Balancing, and Network Integration

Application-Protocol Negotiation

Stunnel can negotiate TLS or related framing for supported application protocols rather than requiring TLS to start immediately on a dedicated port. Current handlers include:

The exact list is build- and version-dependent; consult man stunnel for the installed release.

Operations

Isolation and Access Control

Operating-system firewalls, service-manager controls, and TLS client authentication are preferred over TCP Wrappers for new deployments.

Performance and Scalability

Performance depends on the workload, TLS policy, OpenSSL build, hardware, operating system, and network. See Performance for current vendor measurements and the reproducible methodology.

Compatibility Features

Inetd mode, local exec services, OpenSSL engines, TCP Wrappers, IDENT checks, and TLS compression remain available in suitable builds for legacy integrations. They are not recommended as defaults for new deployments.

TLS compression is security-sensitive and unavailable with TLS 1.3. It must not be enabled when attacker-controlled and confidential data can be compressed together.

Our supporters:
Go to the top