Skip to content
janeblowerPublic

About

Proxy platform for Linux in Rust, compatible with sing-box and Xray configs and protocols

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

ours

Русская версия

A Linux proxy kernel you change while it runs. One static Rust binary. Wire-compatible with sing-box and Xray.

Why ours

ours sing-box Xray
Reload Rebuilds only what changed; untouched connections stay up Recreates everything Restart
Why a connection went where it did Per-connection trace, ours explain — —
Management Built-in dashboard and Admin API Clash API, external UI gRPC API
Build only what you use Per protocol, inbound and outbound separately (build.toml) Build tags —

Benchmarks

ours sing-box Xray
VLESS + REALITY + Vision ↑ 19.3‡ ↓ 9.8 Gbit/s
CPU 0.30 s/GB
16 KiB per connection
↑ 12.0 ↓ 6.0 Gbit/s
CPU 0.53 s/GB
110 KiB per connection
↑ 9.7 ↓ 4.6 Gbit/s
CPU 0.71 s/GB
149 KiB per connection
VLESS + TLS + Vision ↑ 19.3‡ ↓ 9.8 Gbit/s
CPU 0.33 s/GB
16 KiB per connection
↑ 12.3 ↓ 6.1 Gbit/s
CPU 0.63 s/GB
89 KiB per connection
↑ 9.9 ↓ 4.6 Gbit/s
CPU 0.69 s/GB
171 KiB per connection
Shadowsocks 2022 (AES-128-GCM) ↑ 18.8 ↓ 9.6 Gbit/s
CPU 0.36 s/GB
7 KiB per connection
↑ 11.7 ↓ 7.6 Gbit/s
CPU 0.50 s/GB
57 KiB per connection
↑ 9.6 ↓ 4.1 Gbit/s
CPU 0.63 s/GB
198 KiB per connection
Memory at idle 12.9 MiB 58.6 MiB 34.1 MiB

One CPU core per proxy on each side, two cloud machines with a link of about 19 Gbit/s, iperf3 with 4 streams, median of three runs. CPU is the client-side proxy's time per gigabyte of upload; memory is the client-side proxy's. Values marked ‡ are the link's limit, not the core's; the ceiling of download over TLS is about 9.8, as the client decrypts. ours master f4a8d82f, sing-box 1.14.7, Xray 26.11.9, December 2026.

Method: docs/architecture/testing/benchmarks.md.

What is inside

  • Live reload. SIGHUP, --watch, dashboard or subscription update. Per inbound, outbound or rule you pick what survives. ours check --diff previews the rebuild.
  • Route traces. Every connection keeps the inbound, domain, group chain and rule steps that decided it.
  • Own TLS 1.3 stack with browser fingerprints for uTLS and REALITY. kTLS and splice on the data path.
  • Transparent proxy: TPROXY, redirect, TUN. nftables set up by the process.
  • Protocols: VLESS (Vision, REALITY, XUDP, mux.cool, VLESS Encryption), Trojan, Shadowsocks, Hysteria 2, TUIC v5, AnyTLS, ShadowTLS v1-v3, WireGuard, MTProxy.
  • Transports: WebSocket, gRPC, HTTP, HTTPUpgrade, XHTTP.
  • WireGuard / AmneziaWG with AES-GCM negotiated in the handshake. Vanilla peers stay on ChaCha20 (details).

Install

curl -fsSL https://janeblower.github.io/ours/install.sh | sh

Interactive installer for Debian-based systems and OpenWrt. Or download a static binary (x86_64 or aarch64, plain or UPX-packed) from Releases:

https://github.com/janeblower/ours/releases/latest/download/ours-<x86_64|aarch64>-linux[-upx]

Quick start

inbounds:
  local:
    mixed:
      listen: 127.0.0.1:1080
outbounds:
  direct:
    direct:
route:
  final:
    outbound: direct
ours run -c config.yaml --watch --dashboard 127.0.0.1:9090
curl -x socks5h://127.0.0.1:1080 https://www.example.com/

More: VPS server, router, desktop.

Build your own

Need a smaller binary? Build only what you use, in your own fork, with no local toolchain.

  1. Fork the repository and enable Actions in the fork.
  2. Edit build.toml: set what you do not need to false. Inbound and outbound of a protocol are separate keys.
  3. Actions → Release → Run workflow.
  4. Binaries (x86_64, aarch64, plain and UPX) appear in your fork's Releases as a prerelease tagged build-<n>.

Locally: python3 dist/build.py --config my.toml (details).

Docs

Documentation site · Limitations · Migrating from sing-box · Changelog · Contributing · Security

Version 0.1.0, Linux only. Until 1.0 a minor release may change the config format, CLI or Admin API.

License

GPL-3.0-or-later, without warranty (LICENSE). Parts of the code were written from the sources of sing-box, the sing-* libraries, Xray-core, REALITY, miekg/dns and other projects; authors and licenses are in NOTICE and LICENSES.

ours is an independent project, not affiliated with or endorsed by sing-box, Xray, WireGuard or AmneziaWG. It includes cryptography and traffic obfuscation; users are responsible for the rules that apply to their use, import and export. There is no published independent audit of its TLS 1.3, WireGuard or HTTP/2 implementations.

About

Proxy platform for Linux in Rust, compatible with sing-box and Xray configs and protocols

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages