# dlundquist/sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.

Repository: https://github.com/dlundquist/sniproxy
Canonical: https://ross.abutalabs.com/products/sniproxy
Language: C
License: BSD-2-Clause
License Family: permissive
Last push: 2025-09-05T21:58:59+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 40, release rhythm 35, longevity 100
- inputs: {"age_days": 5735, "days_push": 362, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2717, forks 408 (observed 2026-08-28T04:07:12.129702+00:00)

## What it is
A C-based TCP proxy that routes incoming HTTP and TLS connections to backend servers based on the hostname in the initial request (SNI or Host header), enabling HTTPS name-based virtual hosting without decrypting traffic. The project is deprecated as of 2023 due to HTTP/2 and HTTP/3 incompatibilities, but still receives critical security fixes.

## Use cases
- proxy https traffic by hostname without installing tls certificates on the proxy
- name-based virtual hosting for multiple backend servers behind one ip
- route tls connections based on sni extension
- forward http requests to different backends by host header
- hide backend servers behind a single public proxy

## When to choose
- you need transparent TLS passthrough routing without managing keys or certificates on the proxy
- your traffic is plain HTTP/1.1 or TLS with SNI and you want a lightweight dedicated proxy
- you need HAProxy proxy protocol support to preserve client source addresses

## When to avoid
- you need HTTP/2 or HTTP/3 (QUIC) support, which it cannot route correctly
- you want an actively developed general-purpose proxy - consider Nginx or other SNI-aware proxies instead
- you need a proxy with rich features like caching, load balancing, or access control

## Facets
- artifact type: service
- maturity: maintenance
- function: proxy, networking, http-server, security
- domain: networking, web-development, self-hosted
- platform: cli
- tags: sni-proxy, tls-proxy, name-based-routing, deprecated, haproxy-protocol, c, linux, web-server

## Member repositories
- dlundquist/sniproxy (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:12.129702+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:15:20.092132+00:00, confidence not recorded.
  - readme: https://github.com/dlundquist/sniproxy (fetched 2026-08-28T04:07:12.129702+00:00, sha 426666ff1c16)
- Data as of 2026-08-30T08:39:29.467469+00:00.
