Sibuna 1.0.0-rc.7: distributed edge load balancer and WAF
Sibuna is an open-source distributed edge load balancer and web application firewall from the insanai GitHub organization. Version 1.0.0-rc.7 routes TCP, UDP and HTTP to healthy servers from one edge node or a mesh. It can terminate TLS, inspect selected HTTP routes and help protect backends from DDoS floods.
Features and capabilities
Sibuna supports public websites serving browsers over HTTP/2 or HTTP/3, with public certificate renewal via Let's Encrypt and request inspection before forwarding to HTTP/1.1 replicas. It also handles internal gRPC services, issuing certificates for internal names with a local CA and clients calling over TLS through an HTTP/2 backend.
Key features include:
- Load balancing for TCP, UDP and HTTP in front of several servers, with TLS termination, automatic certificates and cluster mode
- DDoS protection at the edge: capping concurrent flows per client IP and frontend, limiting admission of new addresses under pressure, reserving UDP capacity for confirmed flows
- TLS fingerprint matching using JA4 fingerprints forwarded from a trusted ingress
- Application inspection with built-in checks for SQL injection, XSS, path traversal and command injection
- Local rate limits controlling bursts and sustained traffic, with optional limits per rule
- Operator console showing traffic, sampled country activity, recorded incidents and policy editing
- Cluster support: a separate build shares policies and reputation through PostgreSQL
- Browser challenges: proof of sequential work (default) or Hashcash, followed by a signed session
- Access policies: allow, challenge, weigh or deny requests by address, path, headers and User-Agent
- HTTP routes by host name (exact or wildcard such as *.example.org) and path to HTTP/1.1, HTTP/2 or HTTP/3 servers
- Servers with health checks, slow start, draining, weights, sticky sessions and flow limits per server
- Changes while it runs: an accepted reload preserves established TCP streams
- Cluster: nodes share the sticky table and flow limits of a server, forwarding a client to the node that owns it
- Hooks at the connection and request level, compiled in, as WebAssembly with a budget, or as an agent on a Unix socket
- Observation: metrics, access logs and a console view of servers, flows and refusals
Benchmarks and performance
Benchmark results from 25 November 2026 comparing Sibuna against HAProxy 3.0.11 and Envoy 1.40.2 with BoringSSL on the same host show:
| Case | Sibuna | HAProxy | Envoy |
|------|--------|---------|-------|
| HTTP/1.1 | 220,040 | 220,323 | 70,909 |
| HTTP/1.1 over TLS | 174,611 | 165,199 | 63,399 |
| HTTP/2 | 104,132 | 153,899 | 68,972 |
| Resident memory, HTTP/1.1 | 14 MiB | 48 MiB | 58 MiB |
| Resident memory, HTTP/1.1 over TLS | 21 MiB | 61 MiB | 61 MiB |
| Resident memory, HTTP/2 | 116 MiB | 112 MiB | 140 MiB |
Plaintext HTTP was effectively tied between Sibuna and HAProxy. HAProxy served about 48% more HTTP/2 requests than Sibuna and used slightly less memory in that case. Forward-auth mode throughput: 197,532 to 211,636 requests per second with p99 of 305 to 327 us and 11.7 to 13.8 us CPU per request. Reverse-proxy mode: 138,965 to 147,303 requests per second with peak memory about 16 MiB.
Admitted request comparison
| Admitted requests | Sibuna Gate | Sibuna Shield | Anubis 1.27.0 |
|-------------------|-------------|---------------|-----------------|
| Forward auth, req/s | 210,682 | 208,635 | 36,509 |
| Forward auth, p99 | 305 us | 308 us | 7,477 us |
| Forward auth, CPU per request | 12.1 us | 13.2 us | 106.3 us |
| Reverse proxy, req/s | 106,376 | 103,298 | 19,398 |
| Reverse proxy, p99 | 3,331 us | 3,321 us | 11,062 us |
Operations per second for valid session checks: Sibuna (keyed BLAKE3) versus Anubis (Ed25519) and Anubis (HS512).
Platform support and packages
Sibuna provides native packages for multiple platforms:
| Platform | Package | Requirements |
|----------|---------|--------------|
| Linux x86-64 | sibuna-linux-amd64.tar.gz | Linux 5.10 or later; statically linked musl |
| Linux ARM64 | sibuna-linux-arm64.tar.gz | Linux 5.10 or later; statically linked musl |
| macOS Apple Silicon | sibuna-macos-arm64.tar.gz | macOS 12 or later |
| macOS Intel | sibuna-macos-amd64.tar.gz | macOS 12 or later |
| Windows x86-64 | sibuna-windows-amd64.zip | Windows 10 / Server 2016 or later; native sibuna.exe |
| FreeBSD x86-64 | sibuna-1.0.0-rc.7-freebsd-15.1-amd64.pkg | FreeBSD 15.1; CLI package |
| OpenBSD x86-64 | sibuna-1.0.0-rc.7.tgz | OpenBSD 7.9; CLI package |
Each package includes licenses, source links and a build manifest. Verify the archive against SHA256SUMS before using it. macOS builds are unsigned. Debian/RPM packages cover Linux x86-64 and ARM64; Arch sibuna-bin covers x86-64. FreeBSD 15.1 and OpenBSD 7.9 packages cover x86-64 and install the CLI. Linux packages include an optional, disabled systemd service. BSD packages create no service, account or state.
Installation and getting started
Download a release for your platform. The default package includes storage and console support; the console starts with --console. The Sibuna Homebrew tap provides a CLI formula that installs the verified release archive for macOS and Linux (Apple Silicon, ARM64 and x86-64). Installation does not start a service:
brew tap insanai/sibuna
brew install insanai/sibuna/sibuna
sibuna --version
For Linux x86-64, with your app listening on port 3000:
curl -fLO https://github.com/insanai/sibuna/releases/download/v1.0.0-rc.7/sibuna-linux-amd64.tar.gz
curl -fLO https://github.com/insanai/sibuna/releases/download/v1.0.0-rc.7/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS
tar -xzf sibuna-linux-amd64.tar.gz
(umask 077; openssl rand -hex 32 > sibuna.seed)
./sibuna --host 127.0.0.1 --port 8080 --upstream-port 3000 --secret-file ./sibuna.seed
Open http://127.0.0.1:8080 to try it locally. For a public site, terminate HTTPS at a trusted ingress and keep Sibuna's listener private. Follow the deployment guide for Caddy or nginx.
Building from source
All feature sets require Rust 1.100. Build the JSON-only daemon with --no-default-features and select sqlite,console as needed. The browser solver and the console interface are Rust compiled to WebAssembly; the build does not need Node or npm.
git clone https://github.com/insanai/sibuna.git
cd sibuna
rustup toolchain install 1.100.0 --profile minimal --target wasm32-unknown-unknown
cargo +1.100.0 build --release -p sibuna
The executable is target/release/sibuna. It stores state in SQLite with --data-dir. Cluster builds use --features postgres-tls and share one PostgreSQL database through --database-url-file and --cluster-node. See CONTRIBUTING.md for tests, lints and size checks.
Console and administration
The console runs in the same executable. Bootstrap an administrator while the daemon is stopped:
./sibuna init-admin admin --data-dir ./data
./sibuna --host 127.0.0.1 --upstream-port 3000 --secret-file ./sibuna.seed \
--data-dir ./data --console 127.0.0.1:19446
Open http://127.0.0.1:19446/console/ and change the temporary password. The operations guide explains HTTPS access, GeoIP imports, users, API tokens and wall displays.
Gate versus Shield
Sibuna applies Gate or Shield checks depending on the mode. Gate checks access rules, sessions and local rate limits. Shield is the default and adds the built-in attack inspector. A valid session does not bypass applicable attack checks or request limits. The crates separate networking, proofs, policies, local state, storage and management. The book explains their responsibilities.
The private listener uses HTTP/1.1 behind an external ingress. In edge mode TLS, HTTP/2 and HTTP/3 can be terminated in Sibuna and forwarded to HTTP/1.1, HTTP/2 or HTTP/3 server pools. Forward-auth inspects the metadata supplied by the ingress. In reverse-proxy mode, the built-in inspector covers the first 8 KiB of a body. Uploads stream to your app. WebSocket messages are relayed without inspection.
Rate limits are local to each node. Sibuna does not provide volumetric network mitigation. Challenges are bound to the node that issued them; route a challenge and its solution to the same node. The console's strict performance target has not formally passed. Review the deployment limits and measurements before enabling the console beside a production app.
The book records the source revision, configuration and host for each run. These measurements show request cost under a few workloads on one machine. They do not measure equivalent protection or bot accuracy.