AsteriskBOX
AsteriskBOX is a client built on the sing-box core. It splits a sing-box configuration into visual modules — outbound groups, selectors, endpoints, DNS, and routing — that you manage separately, and the app generates the complete sing-box configuration from them. You can configure everything in the UI, edit JSON directly where it matters, or make final adjustments with an override script.
The bottom navigation has four tabs: Home, Proxies, Groups, and Settings.
How the configuration fits together
| Module | sing-box section | Where to manage it |
|---|---|---|
| Groups and outbounds (servers) | outbounds | Groups tab, Settings → Outbound management |
| Selectors (Selector / URLTest) | selector / urltest in outbounds | Settings → Selector management; switch on the Proxies tab |
| Endpoints (WireGuard, Tailscale, …) | endpoints | Settings → Endpoint management |
| DNS servers and rules | dns | Settings → DNS management |
| Routing rules | route | Settings → Routing management |
| Override script (optional) | Final changes to the generated result | Settings → Advanced settings → Override script |
- Every outbound group comes with a managed selector whose members follow the group automatically; custom selectors can freely combine outbounds from several groups.
- Routing and DNS rules can reference outbounds, selectors, or endpoints.
- See the full generated configuration in Settings → Tools → Configuration preview.
Home
- Start service / Stop service, service status and uptime, the current outbound and its latency, plus today's traffic and live speed.
- Proxy mode: Choose Rule to route by rules, Global to use the global selector, or Direct to connect directly.
- Tap Traffic, Connections, Resource, or Network for details. In Connections, you can view connections by app and filter for proxied or direct traffic.
- While the bundled core is running, open Connections → DNS to view and filter recent queries. In Network → Measurement target, select a proxy group to see its Entry IP and Exit IP.
- Tap the floating window button at the top of Connections to view connection stats while using other apps. Grant the overlay permission on first use.
Groups and outbounds
Adding a group
On the Groups page tap Add group:
- Enter manually: enter a remote subscription URL, or leave the URL empty to create a Local group;
- File: import a local sing-box JSON, Mihomo YAML, or share-link file;
- QR code: scan a subscription link QR code and sync immediately.
| Field | Notes |
|---|---|
| Name | If left empty, named automatically after the first sync |
| Subscription URL (optional) | Leave empty for a local group. You'll be advised to use HTTPS instead of HTTP |
| Update interval (hours, optional) | Automatic update period |
| Update through the running proxy | Download the subscription through the proxy |
| User-Agent | sing-box, Clash Meta, v2rayNG, or custom |
| HWID, Mihomo Age secret key | Device identifier reporting and Age decryption |
| Strict import | If any entry in the subscription is invalid, keep the existing servers instead of updating |
| Pre-proxy | A detour (relay) outbound for all outbounds in the group |
Update all group subscriptions downloads, decrypts, parses, validates, and saves each subscription in turn, then shows how many entries were imported / skipped / duplicated, and why any failed. Group cards show the subscription's used traffic, total, and expiry.
Share in a group card's menu can show a Subscription QR code, Copy subscription link, copy the share links of every outbound in the group, or Export links to file. Outbounds without a standard share link are skipped; copying and exporting are unavailable while the group syncs.
Outbounds
Inside a group you can Import outbound (Scan QR code, Import file, clipboard) or Add outbound manually. Supported protocols:
SOCKS, HTTP, NaiveProxy, Shadowsocks, VMess, Trojan, Hysteria, Hysteria 2, VLESS, ShadowTLS, TUIC, AnyTLS, Snell, SSH, plus Mieru, ShadowQUIC, Juicity, Sudoku, and VLESS (Xray) through protocol plugins.
The outbound editor follows sing-box's structure: Server, Protocol, TLS (including uTLS and Reality), V2Ray transport (HTTP, WebSocket, QUIC, gRPC, HTTPUpgrade), Multiplex, QUIC, and Dial (bind interface, domain resolver, timeouts, and network strategy).
The outbound list menu offers PING this group, layout and sort (manual order / remarks / protocol / PING latency), search, copy all server URLs, delete duplicates, and more. An outbound can be shared with Copy URL, Generate QR code, or Copy JSON.
If you edit groups or outbounds by hand while the service is running, the app shows Changes not applied; tap Apply now. A subscription update that changes the outbounds, or a successful resource update, is applied to the running service automatically: an in-place reload in VPN Service mode, a service restart in ROOT modes.
Proxies
The Proxies page lists all selectors; tap a server to switch. The service must be started from Home first. With the top-tab layout and many selectors, tap Show all proxy groups to list every selector in a sheet and jump to one.
Settings · General
Outbound management / Selector management
- Outbound management: import, add, and edit the outbounds of every group in one place.
- Selector management: create and edit Selector (manual) and URLTest (automatic) groups.
To include matching nodes in a custom selector automatically, enable Dynamic members and enter a Node name regex. Use Matching groups to choose which groups to search, or choose All groups. The member list updates when your subscriptions change.
URLTest options:
| Option | Notes |
|---|---|
| Selection method | Lowest latency (prefer low-latency servers) or Failover (pick the first working server in order) |
| Maximum acceptable delay | With failover, prefer servers under this limit; empty or 0 means no limit |
| Test URL / Test interval | Empty uses the defaults (interval 3m) |
| Tolerance (ms) | Only switch when the latency difference exceeds this; default 50ms |
| Idle timeout | Pause testing when idle; default 30m |
You can also choose whether existing connections are closed when the selected outbound changes.
Core implementation
Selector and URLTest map to sing-box's selector and urltest outbounds. URLTest sends a request to the Test URL every Test interval and only switches when a faster server beats the current one by more than the Tolerance, to avoid flapping; after the Idle timeout without traffic it pauses testing to save battery. Failover and Maximum acceptable delay are extensions provided by the bundled core.
Endpoint management
Endpoints are sing-box's VPN-tunnel style outbounds:
| Endpoint type | Use |
|---|---|
| WireGuard | Layer-3 WireGuard tunnel |
| Tailscale | Join this device to a Tailscale network |
| OpenVPN Client | Connect with an OpenVPN client configuration |
| OpenConnect | Connect to AnyConnect-compatible VPN servers |
| MASQUE Client | IP proxying over HTTP (CONNECT-IP) |
Import sing-box endpoint JSON directly, or WireGuard, OpenVPN, and OpenConnect configuration files. For safety, unsafe directives and directives that reference external files are rejected.
DNS management
DNS management maps to sing-box's dns section:
- DNS servers: UDP / TCP, TLS, HTTPS, HTTP/3, QUIC, local resolver, DHCP, Hosts, mDNS, Resolved, group, and DNS provided by Tailscale / OpenVPN / OpenConnect endpoints.
- Default DNS server: handles ordinary DNS queries.
- Outbound domain resolver: resolves proxy server and endpoint domains before connecting.
- DNS rules: match by domain, query type, response content, and more, with actions Route, Reject, Predefined response, Evaluate, and Respond.
- FakeIP and Persist FakeIP mappings; cache options include LRU cache capacity, Optimistic DNS cache, Persist DNS cache, and more.
Core implementation
DNS rules are matched in order, and the first match decides what happens, via the action field of sing-box DNS rules: Route sends the query to a given server, Reject refuses it, and Predefined response answers with the records you entered. Queries that match no rule go to the Default DNS server.
The proxy servers' own domains are resolved by the Outbound domain resolver (route.default_domain_resolver), so connecting to a proxy never depends on DNS through that same proxy.
Routing management
Routing management maps to sing-box's route section:
- Routing rules: actions are Route to outbound or Reject connection; the default outbound is used when no rule matches.
- With the bundled core, routing rules can match traffic by Android package names or Process name.
- Route settings: auto-detect the default interface, default network strategy and fallback network, find the process owning a connection, and more.
- Rule sets come from the
.srs/.jsonfiles in Resource management.
Protocol sniffing
Inserts a sing-box sniff action before the routing rules. Available sniffers: HTTP, TLS, and QUIC (which extract target domains), plus DNS, BitTorrent, DTLS, NTP, RDP, SSH, and STUN (for protocol-based routing). Sniff timeout defaults to 300ms.
Core implementation
Recent sing-box versions no longer configure sniffing on inbounds; they use the sniff route rule action instead. The app places it at the very top of route.rules, and the sniffed domain and protocol are then available to later rules' domain, protocol, and similar conditions.
Resource management
In addition to what's described in Common features, AsteriskBOX can:
- Search the sing-geoip and sing-geosite catalogs and add rule sets in bulk.
- Add custom
.srsor.jsonrule sets and.hostsfiles from a URL or a local file. - Drag custom resources to reorder them. Open Preview to view a downloaded
.srsrule set. - Edit files with the built-in JSON rule set and Hosts editors. The app validates JSON rule sets on save.
Connection test
Test URL, timeout, concurrency, and more; optionally start timing only after the TCP / TLS handshake completes, so handshake time is excluded.
Settings · Tools
- Configuration preview: view the full sing-box configuration generated by the app, for checking or troubleshooting.
- Network quality test: measures upload / download capacity, responsiveness (RPM), and idle latency through the selected outbound using the Apple networkQuality protocol.
Settings · Advanced
- Plugins: manage protocol plugins; see below.
- Override script: modify the generated configuration further with JavaScript. Debugging shows the output JSON, console output, and warnings, and can copy a report. See sing-box configuration for the script API, tag names, and examples.
- Broadcast control, IPv6 and IPv6 preferred.
Protocol plugins
Some protocols ship as separate plugin APKs that the sing-box core runs as child processes. Settings → Advanced settings → Plugins shows whether each plugin is installed; tap a missing one to open its download page:
| Plugin | Purpose |
|---|---|
| Mieru | Mieru outbounds, with mierus:// share links |
| ShadowQUIC | ShadowQUIC outbounds, with sq:// share links |
| Juicity | Juicity outbounds, with juicity:// share links |
| Sudoku | Sudoku outbounds, with sudoku:// share links |
| VLESS (Xray) (optional) | Adds XHTTP, mKCP, and VLESS Encryption to VLESS outbounds |
| Hysteria2 (optional) | Replaces the built-in implementation; port hopping is not supported |
| NaiveProxy (optional) | Replaces the built-in implementation; QUIC is not supported |
Under Protocol implementations, turn on Use the VLESS (Xray) plugin, Use the Hysteria2 plugin, or Use the NaiveProxy plugin. Turn the corresponding switch off to use the built-in implementation.
WARNING
- The app recognizes the Sudoku and VLESS (Xray) plugins published by AsteriskBOX, plus supported plugins from husi, SagerNet, Exclave, Matsuri, and klzgrad.
- If the configuration uses an outbound whose plugin is not installed, the service does not start and names the plugin to install.
- Options a plugin does not support (such as Hysteria2 port hopping or NaiveProxy QUIC) fail with an error instead of being silently dropped.
Implementation notes
Plugin outbounds are compiled after the override script and before the core check into a loopback SOCKS outbound, and the plugin process makes the real connection. The configuration preview, script debugging, and validation therefore all see what actually runs. In VPN mode the plugins protect their own sockets so traffic does not loop back; in ROOT mode they dial through a direct mapping inbound.