[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109181":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},109181,"soar","getlantern\u002Fsoar","getlantern","Soar: a fast, reliable DNS tunnel for networks that censor everything but DNS",null,"Go",62,7,51,1,0,5,9,3,48.11,"Apache License 2.0",false,"main",true,[],"2026-11-11 19:35:56","2026-11-23 00:49:48","# Soar\n\n**Soar is a DNS tunnel built to be the fastest and most reliable way through networks that censor\neverything except DNS.**\n\nWebsite: **[soar.lantern.io](https:\u002F\u002Fsoar.lantern.io)**, with how it works and benchmarks (source in\n[getlantern\u002Fsoar-site](https:\u002F\u002Fgithub.com\u002Fgetlantern\u002Fsoar-site)). A wire-compatible Rust client and\nserver live in [getlantern\u002Fsoar-rs](https:\u002F\u002Fgithub.com\u002Fgetlantern\u002Fsoar-rs). Soar is the\nlast-resort transport in [kindling](https:\u002F\u002Fkindling.lantern.io), from the [Lantern](https:\u002F\u002Flantern.io) team.\n\nThe name comes from the root of every DNS zone: the **SOA** record, *Start of Authority*. Each zone\nbegins with one, and Soar's server is that authority for its zone, the place every query ends up.\nAdd an **r** and the authority *soars*, up and over the censor through the resolvers it can't\nafford to block.\n\nSoar carries TCP streams through ordinary recursive resolvers (the ISP's, public ones, or\nin-country ones it discovers), to a server that is the authoritative name server for a delegated\nzone. It is written in Go, with a client library and a server in one module, and is designed for\nmemory-constrained mobile clients (iOS network extensions included).\n\n## Why another DNS tunnel\n\nExisting tunnels each do one thing well. dnstt and VayDNS are simple but use a single resolver and\nrecover slowly from loss. slipstream runs QUIC over DNS and copes with loss, but it's archived and\nfalls over when resolvers truncate, die or rate-limit. MasterDnsVPN and its forks (StormDNS,\nCottenDNS) handle resolvers well but take tens of seconds to connect and share one static key\namong all clients. Soar was designed from scratch against all of them, in an emulator that models\nwhat censors and resolvers actually do (see [Benchmarks](#benchmarks)).\n\n## Design\n\n- **Packets, not segments.** A session has one packet-number space; stream data travels as\n  byte ranges, so a retransmission is re-cut to fit whichever resolver it goes out on. Several\n  frames share each packet, and each DNS message carries one packet sized to that path.\n- **An answer is an acknowledgement.** Only the server can produce an authenticated answer to a\n  query, so an answer proves the query arrived: upstream needs no ACK frames at all. Downstream,\n  the client acknowledges packets and also reports *which queries got no answer* (`LOST`), so the\n  server resends exactly what was lost instead of waiting out a timer.\n- **Fast loss detection** at both ends: per-path packet thresholds on the client, RFC 9002-style\n  packet and time thresholds on the server, and the tail of every transfer sent twice, on two\n  paths, so the last packet of a request or response doesn't cost a timeout.\n- **Every resolver at once.** Each resolver is a path with its own RTT, loss record, name-length\n  and answer-size budgets, and congestion window. Windows shrink on *runs* of losses (how resolver\n  rate limits drop queries) rather than on scattered random loss, so lossy-but-healthy resolvers\n  stay fully used.\n- **Held polls.** The server holds idle queries until it has data or the client's hold budget\n  runs out, answering the oldest first, so downstream data leaves the moment it's ready.\n- **Small upstream overhead.** Some networks drop names longer than ~101 characters, which leaves\n  about 50 bytes per query. Soar's upstream header is 4 bytes and its tag 8, and every path starts\n  at that safe length, probing up to the full 253.\n- **Built for censors.**\n  - TCP\u002F53 paths (RFC 7766 pipelining) for networks that intercept UDP\u002F53.\n  - Forged UDP answers are ignored: they can't authenticate, so the client keeps waiting for the\n    real one.\n  - AAAA answers where a resolver refuses TXT.\n  - Discovery of working resolvers, vetted by the same authenticated handshake.\n- **Crypto.** X25519 ephemeral key exchange with the server's Ed25519 signature over the\n  transcript (forward secret, server authenticated); per-direction ChaCha20-Poly1305 with the tag\n  truncated to 8 bytes; QUIC-style protection of packet numbers.\n\n### Wire format\n\nThe full specification is [SPEC.md](SPEC.md), with test vectors in\n[testdata\u002Fvectors.json](testdata\u002Fvectors.json) for other implementations, such as\n[soar-rs](https:\u002F\u002Fgithub.com\u002Fgetlantern\u002Fsoar-rs). In outline:\n\nUpstream, in the query name under the zone (lower-case base32):\n\n```\nhello:  sid=0 (2) | client X25519 public key (32)\ndata:   sid (2) | protected pn (2) | seal( hdr (1) | frames ) | tag (8)\n        hdr = hold budget (4 bits, x100ms) | answer size class (4 bits, 512+48k bytes)\n```\n\nDownstream, in TXT character-strings (or numbered 15-byte AAAA chunks):\n\n```\nhello:  server X25519 public key (32) | sid (2) | Ed25519 signature (64)\ndata:   protected pn (2) | seal( held (1, x10ms) | backlog (1) | frames ) | tag (8)\n```\n\nFrames: `PADDING`, `PING`, `ACK` (ranges), `RESET_STREAM`, `MAX_STREAM_DATA`, `CLOSE`, `LOST`\n(upstream pns that got no answer), `OPENED` (the server reached a stream's destination), `STREAM`\n(id, offset, length, FIN). A stream's first bytes name its destination.\n\n## Usage\n\n### Server\n\nDelegate a zone (say `t.example.com`) to a host with an `NS` record, then:\n\n```sh\ngo install github.com\u002Fgetlantern\u002Fsoar\u002Fcmd\u002Fsoar-server@latest\n(umask 077; soar-server keygen | awk '$1 == \"private\" { print $2 }' > key)  # private key, mode 600\nsoar-server pubkey key             # the public key (ship it with clients)\nsoar-server -zone t.example.com -key-file key -listen :53\n```\n\nThe server dials destinations on behalf of anyone holding its (public) key, so by default it\nrefuses non-public addresses (including its own) and only allows ports 80 and 443\n(`-allow-ports`).\n\n### Client\n\n```go\nc, err := soar.NewClient(soar.Config{\n\tZone:      \"t.example.com\",\n\tServerKey: serverPublicKey,\n\tResolvers: []string{\"8.8.8.8:53\", \"1.1.1.1:53\"},\n\tDiscovery: soar.Discovery{Enabled: true, Country: \"IR\"},\n})\nconn, err := c.DialContext(ctx, \"tcp\", \"example.com:443\")\n```\n\n`Client` also implements kindling's DNS-tunnel interface (`NewRoundTripper`, `MaxLength`,\n`RequestTimeout`, `Close`), so it plugs into `kindling.WithDNSTunnel`.\n\n## Benchmarks\n\nMeasured with [`dnsbench`](bench\u002F), which runs each tunnel through emulated recursive resolvers with\nrealistic impairments (delay, jitter, loss, rate limits, truncation, dead resolvers, long-name\nfiltering, TXT filtering, UDP blocking, answer injection). 100 KB fetch throughput, KB\u002Fs:\n\n| scenario | Soar | best other | connect |\n|---|---|---|---|\n| clean | **476** | 433 (VayDNS) | 0.3s |\n| realistic | **124** | 91 (slipstream-rust) | 0.5s |\n| lossy, 10% each way | **91** | 57 (slipstream-rust) | 1.4s |\n| rate-limited resolvers | **78** | 63 (slipstream-rust) | 0.4s |\n| truncating resolver | 168 | 169 (VayDNS), a tie | 0.4s |\n| 2 of 5 resolvers dead | **136** | 92 (VayDNS, given a good resolver) | 0.6s |\n| Iran-like | **69** | 31 (CottenDNS, 21s to connect) | 0.8s |\n| Russia-like (UDP blocked) | **130** | 13 (CottenDNS, 13s to connect); dnstt, VayDNS under 10; slipstream fails | 0.8s |\n| China-like (injection, rate limits) | 49 | **74** (CottenDNS); VayDNS, MasterDnsVPN fail | 1.1s |\n\nEach figure is the median of three runs of a 100 KB fetch of incompressible data; runs vary by\nabout 15%.\n\nThese are emulator results; field measurements from inside Iran, Russia and China come next.\n\n## Status\n\nPre-release. The protocol may still change, and has no compatibility promises yet.\n\n## License\n\nApache 2.0. The bundled Iran resolver and range lists come from KevinNet DNS (MIT); see\n[data\u002FTHIRD_PARTY.md](data\u002FTHIRD_PARTY.md).\n","Soar 是一个专为突破深度网络审查设计的高性能 DNS 隧道工具，仅依赖未被封锁的 DNS 协议即可建立可靠 TCP 连接。其核心采用基于包序号的流式传输、无显式 ACK 的应答确认机制、细粒度多解析器并行路径管理及自适应丢包恢复策略，在高丢包、高截断、速率限制等真实审查环境下保持低延迟与高可用性。适用于受限网络（如防火墙严格过滤的地区）下的安全通信、移动设备代理（含 iOS 网络扩展）及作为抗审查基础设施的底层传输层。",2,"2026-11-24 04:36:06","CREATED_QUERY"]