Stunnel

Stunnel is a security tool that adds a protective layer of encryption to older applications.

  • Network Services
  • Tools & Utilities
Stunnel is a security tool that adds a protective layer of encryption to older applications. It acts like a secure tunnel, wrapping your internet traffic in a private code so that information can travel safely between devices without needing to update the original software’s internal programming.

Platform availability

Available on 1 of 10 platforms

  • Unraid
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

61/100 Good

Maintained
73last commit 65 days ago
Popular
52398 GitHub stars
Easy to install
351 install platform, install notes, Docker image
Light to run
No data
Security check
73no serious findings, 2 minor, tests

Based on 4 of 5 factors.

Availability: platform listings confirmed today

GitHub stars
398
Open issues
4
Last commit
2026-09-17
Activity
stale

Checked 18 days ago - source: GitHub (mtrojnar/stunnel)

Resources & Compatibility

ARM (e.g. Raspberry Pi) is supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Pick a port for the app and for Stunnel Set accept to the port clients should use and connect to the real app's port, then provide cert and key files so Stunnel can encrypt the tunnel; without these settings it cannot start or route traffic. source
  • Keep your certificate and key files safe Stunnel reads the certificate and private key files from your config to make the encrypted connection, so missing or misnamed files will stop it from starting or cause clients to reject it. source
  • Open only the port Stunnel listens on If another device must connect through Stunnel, open the accept port in your firewall (the computer's network gate) and point that device to it; otherwise Stunnel may be running but the connection still won't reach it. source

Fetched 53 days ago - each note links to its source

Alternatives (3)

  • Shadowrocket - Capture all HTTP/HTTPS/TCP traffic from any applications on your device, and redirect to proxy server.
  • Shadowsocks - Shadowsocks is a self-hosted SOCKS5 proxy that uses the open-source Shadowsocks encryption protocol.
  • V2Ray - A platform for building proxies to bypass network restrictions.

Checked 54 days ago - source: AlternativeTo

Common questions

Do I need to modify an existing TCP client or server to use Stunnel?

No. Stunnel is designed to add TLS encryption to existing clients and servers without changing their code.

Which firewall port should be opened so clients can connect through Stunnel?

Open the port that Stunnel accepts on and point clients to that port. Stunnel should be configured to connect to the real application port behind it.

Can Stunnel relay traffic from one server to an OpenVPN service on another server?

Yes. It can be configured between servers so one acts as a middleman forwarding inbound traffic to an OpenVPN server on the other server.

Can Stunnel use SNI to improve compatibility with restrictive networks?

A self-hoster described using a trusted domain as the SNI source to help Stunnel work better on restrictive networks or censored environments.

Will a WireGuard connection through Stunnel always work on Android?

Not necessarily. One Android user reported that direct WireGuard worked, but the same connection obfuscated through Stunnel did not.

Answers sourced from github.com, serverfault.com, www.reddit.com, www.snbforums.com, www.stunnel.org

Community

Collected 48 days ago - public community threads