# inetaf/tcpproxy

Proxy TCP connections based on static rules, HTTP Host headers, and SNI server names (Go package or binary)

Repository: https://github.com/inetaf/tcpproxy
Canonical: https://ross.abutalabs.com/products/tcpproxy
Homepage: https://pkg.go.dev/github.com/inetaf/tcpproxy
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-05-15T19:54:46+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 35, longevity 100
- inputs: {"age_days": 3551, "days_push": 110, "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 1296, forks 161 (observed 2026-08-28T04:04:16.957815+00:00)

## What it is
A Go library and CLI (tlsrouter) for building TCP proxies that route connections based on static rules, HTTP/1 Host headers, and TLS SNI server names. It lets a single listener multiplex connections to different backends without terminating TLS.

## Use cases
- route TCP connections to different backends based on SNI server name
- multiplex HTTP traffic on port 80 by Host header
- run a TLS router that forwards connections without decrypting traffic
- proxy multiple domains on one IP address
- build a custom TCP load balancer in Go
- forward port 443 traffic to different services per hostname

## When to choose
- you need SNI- or Host-header-based routing at the TCP layer without TLS termination
- you want a lightweight Go library to embed proxying in your own application
- you need to serve multiple backends behind a single IP/port

## When to avoid
- you need a full-featured L7 reverse proxy with load balancing, health checks, and middleware (use HAProxy, nginx, or Caddy)
- you need HTTP request rewriting or response manipulation
- you need UDP proxying

## Facets
- artifact type: library
- maturity: stable
- function: proxy, networking, routing, http-server, cli
- domain: networking, backend, developer-tools, infrastructure-as-code
- platform: go, windows, cross-platform, cli
- tags: tcp-proxy, sni-routing, http-host-routing, tls-router, load-balancing, linux, macos

## Member repositories
- inetaf/tcpproxy (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.957815+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-30T04:53:57.683874+00:00, confidence not recorded.
  - readme: https://github.com/inetaf/tcpproxy (fetched 2026-08-28T04:04:16.957815+00:00, sha 162440e5565e)
  - homepage: https://pkg.go.dev/github.com/inetaf/tcpproxy (fetched 2026-08-29T12:10:31.010378+00:00, sha 0a667853a625)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:10:31.013477+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T12:10:31.015497+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
