talira

sing-box

Universal proxy platform for building proxy clients and servers

open sourceGPL-3.0-or-laterself-hostablefree

sing-box is a proxy platform written in Go that runs as either a client or a server from one JSON configuration. Its inbounds include SOCKS, HTTP, Shadowsocks, VMess, VLESS, Trojan, Naive, Hysteria and Hysteria2, TUIC, ShadowTLS, AnyTLS, Snell, TUN, redirect and TProxy, and its outbounds add WireGuard, Tor, SSH, selectors and URL tests. Endpoints cover WireGuard, Tailscale, OpenVPN, OpenConnect and MASQUE. A rule-based router sends traffic by domain, IP, GeoIP, geosite, rule sets and protocol sniffing, with its own DNS client and server (over TLS, QUIC, HTTPS and HTTP/3, plus FakeIP, DHCP and mDNS), multiplexing, V2Ray transports, ACME certificates and Clash- and V2Ray-compatible APIs. It's used to run self-hosted proxy servers for getting around censorship and as the engine of the official sing-box apps for Android, iOS, macOS, Apple tvOS, Windows and Linux. GPL-3.0-or-later, with an added term that derivative works may not use its name.

Ways to install

Package managers

Problems it solves

  • run my own proxy server that gets through national firewalls
  • one client that speaks Shadowsocks, VLESS, Trojan, Hysteria2 and TUIC
  • route traffic through different proxies by domain or country rules
  • transparent proxy for my whole network or phone with a TUN interface
  • self-hosted alternative to a commercial VPN for restricted networks

Features

  • inbounds: SOCKS, HTTP, mixed, Shadowsocks, VMess, VLESS, Trojan, Naive, Hysteria, Hysteria2, TUIC, ShadowTLS, AnyTLS, Snell, TUN, redirect, TProxy
  • outbounds: SOCKS, HTTP, Shadowsocks, VMess, VLESS, Trojan, WireGuard, Hysteria, Hysteria2, TUIC, ShadowTLS, AnyTLS, Snell, Tor, SSH, NaiveProxy
  • WireGuard, Tailscale, OpenVPN, OpenConnect and MASQUE endpoints
  • selector and URL-test outbounds for picking and failing over between proxies
  • rule-based routing by domain, IP, GeoIP, geosite, rule sets and protocol sniffing
  • built-in DNS with TLS, QUIC, HTTPS, HTTP/3, FakeIP, DHCP, mDNS and DNS rules
  • multiplexing, V2Ray transports, UDP over TCP and TCP Brutal
  • ACME and Cloudflare Origin CA certificate providers
  • Clash API and V2Ray API compatibility
  • official graphical clients for Android, iOS, macOS, Apple tvOS, Windows and Linux

Limitations

  • configured through JSON files; the core has no web UI

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what sing-box does.

  1. Xray-core Xray, Penetrates Everything: an open platform for proxying and traffic routing
  2. Hysteria Fast, censorship-resistant proxy built on a customized QUIC protocol
  3. 3X-UI Advanced web panel for managing Xray-core servers

Compare sing-box with the top 3