Repository navigation
Performance and monitoring release. The headline is a server-wide speed cap, found and fixed: on a server that runs Snowflake, SNOWFLAKE_BANDWIDTH (default 5 Mbit/s) limited the upload of every protocol on the box, not only Snowflake's, and the cap stayed in place until the next reboot. The limit is now scoped to Snowflake's own traffic and removed when Snowflake stops, and an existing server drops the old cap on its first start after the update; proxy speeds on our own production server rose about 3x. With the same change the Snowflake proxy no longer runs as root on the host network: it runs as an unprivileged user (UID 60999) with no capabilities. sing-box moves to 1.14.6. The Grafana dashboards and their exporters get an accuracy overhaul, so the same bytes read the same on every dashboard and panels follow the time picker or are labelled when they do not, with new byte counters for TrustTunnel and Telegram MTProxy. Nothing to edit in .env and no keys, users or certificates change: moav update, then moav apply.
Action required for operators
- Monitoring profile: rebuild the exporters and re-render TrustTunnel's config.
moav applydoes all of it: it rebuilds the Snowflake, Xray, sing-box, WireGuard, AmneziaWG and Telegram exporters, re-rendersconfigs/trusttunnel/vpn.toml(new[metrics]section), restarts TrustTunnel and recreates Prometheus for its new scrape job. By hand:moav build snowflake-exporter xray-exporter singbox-exporter wireguard-exporter amneziawg-exporter telemt-exporter,moav bootstrap,moav restart trusttunnel prometheus,moav start. On its first start the new Snowflake exporter rescales its saved lifetime byte totals from 1024 to 1000 bytes per log KB, so the "(all time)" download and upload tiles step down once by about 2.3%. Connection counts are untouched. Anyone graphingincrease()overmoav_snowflake_relayed_bytes_totalthemselves will see that step as a one-off spike; no shipped panel does. - Running Snowflake? Update and apply to lift a server-wide speed cap. Until this release
SNOWFLAKE_BANDWIDTHlimited every protocol on the server, not just Snowflake (see Fixed).moav update, thenmoav apply, rebuilds the Snowflake image; on its first start the new container removes the old cap by itself. Nothing to edit in.env. SNOWFLAKE_BANDWIDTHnow means what it says: a cap on Snowflake's own traffic.0or an empty value means unlimited. A value that is not a number stops Snowflake from starting, with the reason inmoav logs snowflake.
Security
- The Snowflake proxy no longer runs as root with
NET_ADMINon the host network. The proxy is the part that talks to the Internet. It now runs as a dedicated unprivileged user (UID 60999) with no capabilities. A short root supervisor in the same container keepsNET_ADMIN(plusSETUIDandSETGID, used once to drop privileges) to install and remove the bandwidth limit.NET_ADMINon the host network can still change the host's firewall and routes; it now sits on a small shell script that reads validated settings, not on the process that parses traffic from strangers.
Added
- TrustTunnel has a byte counter. The endpoint's own Prometheus listener is switched on (
[metrics]invpn.toml, port 1987, exposed to the compose network only and never published) and Prometheus scrapes it as jobtrusttunnel. It reports sessions and payload bytes per client protocol and nothing per user (per_client_metrics = false). Upstream's metric names carry no prefix, so the scrape job renames them (inbound_traffic_bytesbecomestrusttunnel_inbound_traffic_bytes). - Telegram MTProxy has a byte counter. The Telegram exporter adds
telemt_api_octets_total: bytes relayed for MTProxy clients, both directions in one figure, because telemt's API reports one number per user with no direction. It advances by per-user deltas, so it keeps climbing across a telemt restart, and no username is exported. The Telegram dashboard gains a "Relayed (range)" tile. - Research dashboard: TrustTunnel and Telegram MTProxy are in the totals. "Total protocol traffic", "Your VPN users", the per-protocol table, the rate chart and the engine pie include both; the Overview traffic panels do too. MasterDNS needed no counter: like dnstt and Slipstream it exits through sing-box's
mixedinbound and was already counted there, so a second counter would have counted it twice. GooseRelay still has none and stays in the container table. - Research dashboard: "Port coverage" tile, the share of sing-box's bytes in the selected range that carry a destination port.
Fixed
- WireGuard and AmneziaWG dashboards: "Peers by Country" was almost all
XX. The panels counted every provisioned peer, and a peer that has never connected has no endpoint, so no address to look up. On a live server with 73 peers and 2 in use, 71 readXX(97%). The geoip lookup itself was working. The panels are now "Connected Peers by Country (selected range)" and count peers that had a live handshake in the range. - WireGuard and AmneziaWG exporters: every IPv6 peer read
XX.wg showprints an IPv6 endpoint in brackets ([2001:db8::1]:51820), and the exporter passed the brackets on to the geoip lookup, which rejected them. - Research dashboard: the port panels described about 40% of sing-box's traffic. The exporter kept port counters for named sites only and dropped them for everything folded into
other(38% covered over 24 hours on a live server, 4.57 of 12.16 GB). Those bytes are now kept under siteother. Outside a named site a port is named only onceSITE_ANALYTICS_MIN_CLIENTSdistinct clients have used it in the bucket, and is portotheruntil then, so the rule that protects sites protects ports too. Hours recorded before the update stay partial; the new "Port coverage" tile says how much of the selected range is attributed. - Conduit dashboard: "D/L", "U/L" and "Total Bandwidth Over Time" ignored the time picker. They read Conduit's session counters raw, which count from the last Conduit restart and fall to zero on the next one (54.9 GB on every range on a live server, next to a 30-minute default range). The tiles are "D/L (range)" and "U/L (range)" and equal Conduit's slice on the Research dashboard; the chart is "Bandwidth Volume (per interval)". "Traffic by Region" used a fixed one-hour window under a description that said cumulative; it follows the picker. "Session High" always covered 24 hours and is titled "24h High".
moav updatedid not queue an exporter rebuild for a change underexporters/lib/. The shared modules are copied into the sing-box, Xray, WireGuard and AmneziaWG exporter images, but the path mapped to alib-exporterservice that does not exist, so a fix there never reached a running container.- Snowflake byte figures read 2.4% high. Upstream reports traffic in units of 1000 bytes (
formatTrafficdivides by 1000), in its log and in itstor_snowflake_proxy_traffic_*counters. The dashboard and the exporter both multiplied by 1024. Both use 1000 now, and the Snowflake panels show decimal units, so a tile and the proxy's own log agree. - Research dashboard: Snowflake's traffic was 1000x too low. "Traffic by protocol" read the same counters as bytes with no scaling at all, so a proxy that relayed 1.7 GB in a day showed as 1.7 MB and its slice vanished.
- Xray dashboard: Upload, Download and Cumulative totals were inflated on any range that included an Xray restart.
xray_upload_bytes_totalandxray_download_bytes_totalwere sums of per-user counters; after a restart the sum dips each time a user reconnects, andincrease()counted every dip as a full counter reset. A live server read 569 GB over 7 days where the per-inbound counters say 57 GB. The dashboards now sumincrease()per inbound, and the exporter advances the two totals by per-user deltas so they no longer dip. - Overview dashboard: "Active Users (all protocols)" and "Traffic Rate (all)" showed No data. They added series from different jobs without aggregating, so no labels matched. A protocol that is switched off now counts as zero instead of blanking the tile. "Network by Container" had two targets with the same refId.
- System dashboard: "Network I/O" showed the node-exporter container's own traffic (a few MB a day), because node-exporter is not on the host network. It reads the host's interfaces from cAdvisor now.
- Containers and Overview dashboards counted the whole server's traffic as Snowflake's. Snowflake uses the host network, so cAdvisor reports every host interface for it. It is left out of the container network panels. Range totals also dropped all but one incarnation of a container recreated inside the range (
max by (name)); they add the incarnations up now. - sing-box, WireGuard and AmneziaWG dashboards: "Total" tiles ignored the time picker. They read counters raw, so they counted from the last exporter or interface restart and fell to zero on the next one. They are range-scoped now, titled "(range)", and equal that engine's slice on the Research dashboard. sing-box "Cumulative Traffic" is "Traffic Volume (per interval)".
- Xray dashboard: "Users by Country" listed connection counts, and "Connections by Country" and "Total Connections" were lifetime counters. They follow the time picker now, as on the sing-box dashboard.
- Research dashboard: Snowflake country panels missed every country's first connection (
increase()alone). "Snowflake reach by country", the completed count and "Source countries" use the Snowflake dashboard's range query. - Research dashboard: port and direction charts took a short-window rate of the site counters, which advance once per analytics bucket, so they read zero between steps and spiked on them.
- Snowflake dashboard: the country panels, Countries Reached and the success rate now follow the time picker. They read
max_over_time()of the proxy's connection counter, which is its total since the proxy started, so a live proxy showed 1,625 connections from 94 countries on every range from 1 hour to 7 days (the last hour really had 13 from 6). They now count what completed inside the selected range, include a country's first connection, and sum across a proxy restart instead of keeping only the larger run. - Snowflake dashboard: "Connections Served" was the lifetime counter drawn as a flat line and labelled connections/hour. It is now "Connections per Hour", with completed and failed attempts on one chart ("Failed Connections (per hour)" is folded into it).
- Snowflake dashboard: lifetime tiles said they covered the selected range. "People Served", "Downloaded" and "Uploaded" are lifetime totals from the persistent log; they are now titled "(all time)" and described as such. "People Served" counted connections, not people, and turned red above 1,000; it is "Connections Served (all time)" in a fixed colour.
- Snowflake dashboard: Relay Throughput ignored its Download/Upload colours because the legends were named "to client"/"from client". Download is blue and Upload green on every panel now.
SNOWFLAKE_BANDWIDTHthrottled the whole server. The Snowflake container uses the host network, and its entrypoint replaced the root queueing discipline of the server's main interface with a token-bucket filter atSNOWFLAKE_BANDWIDTH. With the shipped default of 5, every protocol (sing-box, Xray, WireGuard, Conduit, even SSH) shared 5 Mbit/s of upload, and the cap stayed until the next reboot because nothing ever removed it. The limit is now scoped: one nftables rule marks packets sent by the Snowflake user, and one filter on the interface'sclsacthook sends only those through a dedicatedmoav-sf0device that carries the shaper (CAKE;htbwithfq_codel, thentbf, on kernels withoutsch_cake). The interface's own queueing discipline is never touched. The number is Snowflake's total upload on the wire, IPv4 and IPv6, both relay directions together.- The limit is removed when Snowflake stops. The supervisor deletes its nftables table, its filter and the
moav-sf0device onmoav stop, on a restart and when the proxy crashes. After a hard kill the leftovers only match Snowflake's own user, and the next start replaces them. - Existing servers recover on their own. On start the container deletes the old server-wide filter when it matches exactly what the old entrypoint installed (
tbf, burst 4Kb, latency 400ms, on the root of a default-route interface), which puts the kernel default back. Any other root queueing discipline, including atbfan operator set up with different values, is left alone. - Snowflake does not start without its limit. If a limit is set and cannot be installed (no
NET_ADMIN, rootless Docker, missingifb,cls_fworact_mirredkernel module), the container exits with the reason instead of running unlimited, as it used to.SNOWFLAKE_BANDWIDTH=0is the way to run without one. - One default for
SNOWFLAKE_BANDWIDTH: 5.docker-compose.ymland the entrypoint fell back to 50 while.env.exampleandmoav donatesaid 5.
Changed
- Research dashboard: new "All traffic" section. Total protocol traffic, the VPN-users and bridges split, the server's wire traffic, a per-protocol table (every sing-box and Xray inbound, WireGuard, AmneziaWG, Conduit, Snowflake) and a stacked rate chart. The tiles, the table and the pie read the same counters over the selected range, so they add up to each other and to the per-protocol dashboards. A container table shows wire bytes per container, the only measure for GooseRelay, and a note explains payload versus wire. Panels that do not follow the time picker are titled "(now)" or "(all time)".
- All dashboards: traffic is shown in decimal units (kB, MB, GB; kB/s). Some panels used binary units (KiB, MiB, GiB), so the same bytes read 7% apart per GB between dashboards and even between two panels of one dashboard. Memory and disk panels keep binary units (MiB, GiB), as
free,docker statsand most tools report them: seven memory panels and the System dashboard's "Disk I/O". - Snowflake dashboard: the country pie is Top 10 plus Other. Other adds up every remaining country, so nothing is dropped and the slices still sum to the Connections tile; Unknown keeps its own slice. The timeline beside it still lists every country.
- Snowflake dashboard: "Rendezvous Success Rate" is now "Connection Success Rate". The formula was right (completed / (completed + failed)), the name was not: every attempt it counts had already passed rendezvous. A low figure is normal and mostly reflects the client's NAT or censorship.
- Snowflake dashboard: the country timeline is per-interval stacked bars ("Connections by Country over Time") instead of a running total, with the same colours as the pie, a legend sorted by total, and countries with nothing in the range hidden. The geoip-miss bucket
??is shown as "Unknown" and no longer counts as a country in Countries Reached. - sing-box and Xray dashboards: the breakdown charts use the Snowflake per-interval format. Stacked bars of what happened in each interval, a table legend on the right sorted by total, and anything with nothing in the range hidden. Charts by user or country draw the 10 busiest of the selected range plus one "Other" that adds up everyone else, so the bars still sum to everything (a live server has 64 users and over 80 countries). On sing-box: "Connections by User" and "Traffic by Protocol" (bytes per inbound, with the same inbound colours as the pie beside it). On Xray: "Connections by User", "Traffic by User" and "Traffic by Protocol". The two connection charts drew each user's running total before, which only climbs and is the same on every time range.
- Xray dashboard: "Traffic by User" and "Traffic Rate by User" are one panel. Drawn per interval they are the same chart: bytes in an interval are the average rate times the interval. The merged "Traffic by User" shows bytes per interval (upload and download together) and its legend totals the selected range, which is what the old running-total chart was read for. "Connections by User" stays separate, since it counts connections and not bytes. "Connection Rate" and "User Details" are half width each and the two per-user charts sit side by side below them.
- sing-box and Xray dashboards: new "Connections by Country over Time", the same chart as on the Snowflake dashboard with the same country colours, under the pie in "Geographic Distribution". There is no traffic-by-country chart: neither exporter counts bytes per client country.
- Conduit dashboard: fits one screen. The region panels were three: a Top 5 line chart, a second Top 15 line chart with one override per region, and two tables that listed every region ever seen (178 on a live server, mostly zeros) in panels 62 and 37 grid rows tall. Now "Top Regions" is one stacked chart (Top 10 plus Other, following the Client State selector) at half width beside "Client Connections", whose line it adds up to. The two tables sit side by side under the bandwidth charts: "Traffic by Region" (Download, Upload, Total) and "Clients by Region" (Now, Average, Peak), each listing the 20 busiest regions, scrolling, and leaving out regions with nothing in the selected range. The clients table follows the Client State selector, and its Average and Peak match the chart's legend.
- Snowflake dashboard: new "Connections (selected range)" tile, orange at 0 so a proxy that is up but serving nobody stands out. "Bandwidth Donated (per hour)" is split by direction.
moav donateshows "unlimited" forSNOWFLAKE_BANDWIDTH=0, says the limit covers Snowflake only, and refuses a value that is not a number.- sing-box 1.14.4 -> 1.14.6 (all nine pins:
.env.example, the three Compose build args, the sing-box, bootstrap and client Dockerfiles, and the two CLI fallbacks). Upstream patch train, 1.14.5 plus 1.14.6. Fixes that touch what MoaV runs: VLESS mux servers with concurrent streams, WebSocket frames split by concurrent control frames, WebSocket upgrade handshakes now bounded by a timeout, Hysteria2 Salamander obfuscation performance and an obfuscated connection close corrupted on retransmit, sniffed buffers leaking on routing errors, and a cache-file writer lock held after a panic. Themixedand HTTP inbounds now cap HTTP request headers at 1 MiB (answering 431 above that); the DNS tunnels reach themixedinbound over SOCKS5 and are not affected.sing-box checknow also rejects a route rule that names a missing outbound or a DNS rule that names a missing server; the MoaV template passes. No config change and no re-bootstrap:moav update, thenmoav applyrebuilds the sing-box image. The real-binarysing-box check/formatCI gate re-validated against 1.14.6, no deprecation warnings.
Testing
tests/dashboard-promql-test.shruns the dashboards' own queries through the pinnedpromtool. Snowflake per-country: a synthetic proxy with a restart, a first-seen country, a single connection, a failed scrape at the edge of the range and enough countries to fill Other; both earlier formulas (increase()alone,max_over_time()over the range) fail it. Traffic totals: every engine restarts once inside the range, and the Research total, split, pie and table must equal each other and each engine dashboard's tiles (Conduit's included), with Snowflake scaled exactly once and TrustTunnel and Telegram counted. Peers by country: peers in use, one that stopped before the range and five that never connected.tests/dashboard-units-test.shis the static gate for the same class of bug on every dashboard: binary units on a traffic panel, Snowflake's counters unscaled or scaled by 1024, Xray's dipping totals, a host-network container in a container network panel, node-exporter interface counters, a protocol byte counter read raw, a short-window rate on the site counters, duplicate panel ids or refIds, and Research no longer reading the counters the engine dashboards show. It also checks that the Xray and Telegram exporters' totals keep climbing across a restart, that the WireGuard and AmneziaWG exporters geolocate IPv6 endpoints, that no panel counts never-connected peers by country, and that no Conduit tile reads a session counter raw or uses a fixed window.tests/dashboard-stacked-test.shis the static gate for the breakdown charts: stacked bars, sorted table legend, zeros hidden, Top 10 plus Other wherever a chart is by user, country or region, no chart with one series per user, the pies' country colours, and on the Conduit dashboard no panel over 12 grid rows, capped tables without all-zero rows, and the split top row.tests/dashboard-promql-test.shgains a scenario for these charts: thirteen users with an exporter restart, a 16-minute scrape gap across an interval boundary and a user first seen inside the range; the bars must add up to every connection, with the newcomer folded into Other and no spike after the gap.tests/trusttunnel-interop-test.shscrapes the pinned endpoint's metrics from a neighbour container with egress isolation on, and requires the byte counters to move after traffic through the tunnel, with no username on the endpoint.tests/sitestats-test.shrequires the port counters to add up to the site counters, and a port that fewer than the threshold of clients used to stay unnamed.tests/snowflake-metrics-test.shcovers the unit base (1 KB = 1000 bytes) and the one-time rescale of a state file written by the old exporter.tests/snowflake-shaper-test.sh. Withtc,nftandipstubbed it checks the settings (0, empty, not a number), that the root queueing discipline is never added, replaced or deleted, the order of installation, removal on exit and on SIGTERM, fail-closed, the fallbacks and the self-heal signature. With--liveit builds the image and measures real traffic with iperf3 in a throwaway network namespace: the Snowflake user is held to the limit while another user runs at full speed.
Quick Install
curl -fsSL https://moav.sh/install.sh | bashThis will install MoaV to /opt/moav and guide you through setup.
Documentation
moav.sh/docs — full documentation
Get started
- Quick Start — install to first user in ~10 minutes
- Client Setup — connect from phones and desktops
- DNS Configuration — records, delegations, freeing port 53
Reference
- CLI Reference — every command and flag
- Setup Guide — every option, in depth
- Monitoring — Grafana dashboards and metrics
- Troubleshooting — symptom-first fixes
Understand it
- Supported Protocols — per-protocol ports, ciphers, stealth
- Architecture — container topology and bundle flow
- Threat Model — what is and is not protected
- OPSEC Guide — operator-side hardening
Help out
- Support MoaV — run a server, contribute, translate, donate
- Translating the Docs — one page is a complete contribution
Running it with an AI agent? llms.txt is a compact orientation for coding agents; llms-full.txt is the whole corpus. Both ship as release assets.
Community
Telegram · X · Issues · moav.sh
Full Changelog: v2.5.1...v2.5.2