sslh inspects the first client bytes on a listening port and forwards connections to SSH, HTTPS, or other configured backends.
Overview
sslh is a network daemon that demultiplexes protocols sharing one TCP port. It probes incoming data for signatures such as HTTP, TLS with SNI and ALPN, SSH, WireGuard, OpenVPN, XMPP, or SOCKS5, then proxies the session to the matching backend service.
A common pattern serves HTTPS and SSH on port 443 so SSH remains reachable inside restrictive firewalls while websites stay online. SNI-aware routing also supports virtual hosting farms on one IP address.
Operational features include capability dropping, inetd and systemd integration, IPv4 and IPv6, TCP and UDP modes, transparent proxying, HAProxy PROXY protocol support, chroot, and multiple concurrency models including libev for larger installs.
Documentation covers installation, security reviews, connection limits, transparent routing setups, Docker compose examples, and podman guides.
Key features
- TLS SSH and HTTP protocol probes
- SNI and ALPN aware routing
- Transparent proxy modes
- PROXY protocol support
- systemd and inetd integration
- Docker and compose examples
- IPv4 IPv6 TCP UDP listeners
- libev based high-capacity mode
Use cases
- SSH and HTTPS on port 443
- Single-IP multi-service hosting
- Corporate firewall SSH access
- Protocol demux front ends