Skip to content

Other ​

Top-level sections ​

The list of sections is crates/native-config/src/entity.rs (TOP_LEVEL); any other section is the error configuration: unknown field.

WhatStatusWhereVerdict
endpointspartial: only wireguardTOP_LEVEL, Provide::Endpointrarely needed: Tailscale, OpenConnect, OpenVPN
services: ssm-api, resolved, derp, hysteria2-realm, ccm, ocm, oom-killer, usbipnoTOP_LEVELssm-api, resolved, derp, realm — rarely needed; ccm/ocm (proxies for Claude Code/Codex), usbip, oom-killer — junk for a router's proxy kernel
certificate_providers (ACME, Tailscale, Cloudflare Origin CA)noTOP_LEVELsee tls.md
experimental.clash_api, experimental.v2ray_apino: experimental: `clash_api` is not supportedcrates/native-config/src/version.rs (experimental)clash_api — do, if third-party panels (yacd/metacubexd) are needed; v2ray_api (statistics over gRPC) — rarely needed. Our own management is the Admin API (app/ui)
logpresentapp/ours/src/log.rs—
subscriptions, groups, rule_sets, reloadbeyond the reference——

NTP and clocks ​

WhatStatusWhereVerdict
The TUIC congestion control clock on NTP time (congestion_meta1.DefaultClock in sing-quic)no: congestion is computed on the monotonic clockcrates/quicjunk: intervals need a monotonic clock, and the NTP correction only shifts it
write_to_systemdifferent: after the system time is written the correction is zeroed; the reference applies it once more to the already corrected clock until the next exchangemodules/system/ntp/src/service.rs—

Network namespaces and dial ​

WhatStatusWhereVerdict
network_namespaces with type: unsharenomodules/system/dial/src/lib.rs (network_namespaces)rarely needed
dial.protect_pathnomodules/system/dial/src/block.rs (decode)platform (Android VpnService)
dial.domain_strategy, dial.domain_resolverdifferent: refused with a pointer to dns.rules with an outbound conditionmodules/system/dial/src/block.rs (decode)— (design, see design.md)
Trying a domain's addresses on dialdifferent: RFC 8305 (alternating families, an attempt every fallback_delay, 250 ms by default) instead of the reference's DialParallel (a whole family, the second after 300 ms)modules/system/dial/src/lib.rs (connect_staggered)—
tcp_multi_pathpresent, if the kernel supports MPTCPlibs/net-sys/src/lib.rs—
tcp_congestion on inbounds and outbounds, route.default_tcp_congestion (YAML: tcp.congestion, route.dial.tcp.congestion)beyond the reference: TCP_CONGESTION; an algorithm not in tcp_available_congestion_control is a load error with a modprobe hintlibs/net-sys/src/lib.rs (check_tcp_congestion), crates/config/src/options/listen.rs—

HTTP downloads ​

Subscription, remote rule-set, and Adblock list downloads, along with tools fetch, send User-Agent: ours/<version> by default (ours_http::USER_AGENT, crates/http/src/lib.rs). Subscriptions and remote rule-sets accept a custom User-Agent through their configured headers.

Cache file ​

WhatStatusWhereVerdict
Formatdifferent: a directory of journals instead of bbolt; a sing-box file in place of the directory is an errormodules/system/cache/src/enabled.rs— (design)
store_selected, store_mode (from clash_api)different: the choice of manual groups is always stored; there is no Clash modethe same place, modules/routing/group/src/lib.rs—
Locking the directory by one process (check does not open the directory)differentthe same place (Lock)—

Command line and process ​

WhatStatusWhereVerdict
generate ech-keypair, tls-keypair, vapid-keypair; tools synctime, networkquality, stun; rule-set format, rule-set merge, rule-set upgrade; mergenoapp/ours/src/cli.rsmerge — contradicts one file; the rest — rarely needed
tools fetchdifferent: HTTP/1.1 only, without http3://app/ours/src/tools.rs—
rule-set convertbeyond the reference: -t dat --category — the categories of geosite.dat/geoip.dat into .srsapp/ours/src/rule_set.rs—
formatdifferent: only spaces and empty lines of the YAML, see config-format.mdapp/ours/src/format.rs—
explain, check --diff/--view/--fetch, clean (auto-nft clean), schemabeyond the referenceapp/ours/src/{explain,diff,auto_nft}.rs, main.rs (schema)—
client list/add/remove/export (the clients module), the dashboard's "Clients" section and /api/clients*beyond the reference: WireGuard peers (keys, an address, writing to config_file or the YAML) and their wg/awg/QR/sing-box/Xray configurations; vless://, hysteria2://, tuic:// links and a subscriptionmodules/config/clients, app/ours/src/clients.rs—
Several configurations and a -C directorydifferent: one -c or -C, one YAML in the directoryapp/ours/src/main.rs (parse_args, native_options)see config-format.md
Reload on SIGHUPpresent: rebuilds only what changed (see design.md)app/ours/src/main.rs (reload)—
--watchbeyond the referenceapp/ours/src/main.rs (changes)—
Platform clients (libbox, graphical clients)no—junk for a kernel on Linux

GPL-3.0-or-later