# SNIProxy

SNIProxy is a lightweight TCP-layer proxy that inspects the Server Name Indication (SNI) hostname in each incoming HTTPS connection and forwards it to the matching backend, enabling name-based HTTPS virtual hosting. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/888/sniproxy

## Description

SNI Proxy is a lightweight TCP-layer proxy that inspects the Server Name Indication (SNI) hostname in each incoming HTTPS connection and forwards it to the matching backend, enabling name-based HTTPS virtual hosting without storing the backend servers' private keys. It was designed for homelabbers running LAN caches or DNS overrides — such as a self-hosted Steam or Origin launcher cache — where HTTPS clients must still reach the correct origin host even though local DNS points elsewhere. Note that the author marked the project deprecated in December 2023, pointing to general-purpose options such as Nginx that can also proxy on the SNI extension, and noting that HTTP/2 (which multiplexes multiple hostnames over one TCP stream) and HTTP/3 (UDP/QUIC) cannot be routed reliably by SNI Proxy.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

62/100 (Good), based on 4 of 5 factors.
- Maintained: 72 (last commit 28 days ago)
- Popular: 69 (2,721 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Security check: 59 (no serious findings, tests, OpenSSF Scorecard 2/10)

## Links

- GitHub: https://github.com/dlundquist/sniproxy
- Docker Hub: https://hub.docker.com/r/steamcache/sniproxy/
- Unraid: https://ca.unraid.net/apps/sniproxy-0jpj78f054yg23?q=SNIProxy
- Official website: https://squishedmooo.com
- Documentation: https://squishedmooo.com/?p=1

## Common questions

### Why might SNIProxy fail to route HTTP/2 or HTTP/3 traffic correctly?

It does not support those protocols, and HTTP/2 can multiplex multiple hostnames in one TCP stream while HTTP/3 uses UDP transport.

### Where does SNIProxy look for its configuration file by default?

It defaults to /etc/sniproxy.conf, and a different file can be specified with the -c flag.

### How can backend servers learn the original client address?

Use the HAProxy proxy protocol, which SNIProxy supports to propagate the original source address to back-end servers.

### Can one SNIProxy instance use multiple listeners?

Yes, it supports multiple listening sockets per instance.

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