# Stunnel

Stunnel is a security tool that adds a protective layer of encryption to older applications. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6199/stunnel

## Description

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.

## Health score

61/100 (Good), based on 4 of 5 factors.
- Maintained: 73 (last commit 65 days ago)
- Popular: 52 (398 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Security check: 73 (no serious findings, 2 minor, tests)

## Links

- Official website: https://www.stunnel.org/
- Documentation: https://www.stunnel.org/support.html
- Docker Hub: https://hub.docker.com/r/dockurr/stunnel
- GitHub: https://github.com/mtrojnar/stunnel

## 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.

## Alternatives

- 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/6199/stunnel), the self-hosted and open-source app directory.
