As upstream's prober: the sites apps reach directly (the Clash API's
direct connections here; upstream's inbound access log) are probed
through each exit, direct first, every interval and at once for
proxy-ctl proxy auto learn. One blocked directly but reached through an
exit is routed through it: its exit's local rule-set, which sing-box
reloads. Upstream's judgement, ported and tested: block pages, the walk
over paths and exits, one exit per network first, strikes against exits
that refuse, a new egress discarding what was learned, rechecks once per
TTL. Blocks zapret can fix stay direct.
The config gains a loopback probe listener per exit (with the hop login,
pinned behind the loopback guard) and the learned rules after the user's.
proxy-ctl proxy auto list|probe|learn|forget|clear over new API requests
(autoProxy scope). Slow sites (slowBelowKiBps) are not routed yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creators and joiners, built from upstream's tag with upstream's patches
(links and passwords from the environment, never argv), run by the
service as whitelist-bypass.nix runs them: joiners while the proxy runs,
as its outbounds, creators while the suite is on, their logins kept in
a working copy they refresh. proxy-ctl wl list|link|auth|join|new|restart
over new API requests (whitelistBypass scope).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ps_core::awg: upstream's scripts/amneziawg_config.py, ported: a profile
from a .conf, an AmneziaVPN vpn:// link (qCompress'd JSON or the compact
.conf form, containers and DNS placeholders as upstream reads them) or
declarative settings (with obfuscationFile's secrets); AWG 3's MTU
default, the endpoint override, upstream's checks (no wg-quick hooks
unless allowed, no control characters, one [Interface]); and the
wireproxy configuration. Checked against links made by upstream's own
encoder, output byte for byte.
- wireproxy-awg for Windows, built from upstream's tag (pinned to its
commit) with upstream's patches, by tools/build-wireproxy-awg.sh; in
the release as a bundled component. Go joins the dev shell.
- The service runs one per "userspace" AmneziaWG outbound and WARP
device, on its loopback port with the hop login, its configuration
below the protected state root; "singBox" profiles reach the renderer.
wireproxy goes direct under the TUN.
- End to end on Linux (an_amneziawg_tunnel): sing-box as the WireGuard
server, the service's wireproxy as the client; a page through its
listener and through the proxy's outbound, named inside the tunnel.
- What is still to come and said: AmneziaWG as a system-wide VPN.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Devices registered as wgcf registers them: an X25519 key made by the
service, its public half posted to Cloudflare's client API (through the
local proxy first, as upstream, then directly, then warp.generatorUrl),
the answer made into wgcf's profile and kept below the protected state
root; or a profile given (config, configFile). The renderer's endpoint
for it was there; the service now supplies the profiles.
- Registration runs outside the service's lock, at start, after a change,
and every ten minutes until it succeeds; the proxy is applied again
with the new device.
- Checked: a device registered live with Cloudflare, its profile rendered
as a sing-box WireGuard endpoint and the proxy running with it.
WARP through AmneziaWG (userspace, interface) is still to come, and said.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- tor: the Tor Project's Expert Bundle for Windows (15.0.26) as a
component, pinned by the hash of the release whose signature was
checked against the Tor Browser Developers' key; the installer takes
gzipped tars now (plain files only: a link could point anywhere).
- The torrc upstream's tor.nix writes: SOCKS for the tor outbound,
bridges with the bundle's lyrebird (obfs4, webtunnel, meek, snowflake)
and conjure, the local proxy as upstream (upstream = "proxy") with its
login, extraConfig. The control port is on loopback with cookie
authentication (upstream's is a Unix socket only Tor's user opens).
Values are quoted with control characters escaped: a newline in, say,
the proxy's login would otherwise start a directive (one that runs a
program, as SYSTEM).
- Tor's own connections go direct under the TUN unless upstream =
"proxy". The onion service (for the inbounds) is still to come and is
said to be.
- Checked: Windows' tor.exe, under Wine, takes a torrc of this shape,
bridges and escaped values included; on Linux the service runs Tor and
it bootstraps as far as this network lets it without bridges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- package.sh builds the app (on its own, so its crates' features leave
the service's build as it was) and puts proxy-suite.exe in the zip;
THIRD-PARTY.md names GPUI, GPUI Kit and Lucide.
- README: the app, what has been verified of it and how (every page on
Linux, headless; the Windows build; not drawn on Windows yet), install
and first run with it, the system proxy, building and trying it.
- Release notes for 0.2.0-pre.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tray (gpui-tray): a shield coloured by how things are (working, one
failed, all off, no service), its tooltip saying which; the menu opens
the window and switches the local proxy, the DPI bypass and the Telegram
proxy, with their states checked; Quit. Closing the window leaves the
app in the tray (no tray: it quits); --hidden starts it there.
- The app builds for Windows from Linux: GPUI compiles its HLSL shaders
with fxc.exe only when the building machine is Windows, so its Windows
backend is vendored with that one check made on the target instead
(vendor/gpui-pre-windows/PATCHED.md, tools/vendor-gpui-windows.py), and
tools/fxc-wine.sh runs Microsoft's fxc.exe under Wine: the compiler from
the Windows SDK 10.0.26100 installer, pinned by hash, kept on the build
machine; only the compiled shaders go into the app.
- gui-shot.sh keeps the app off the desktop's session bus.
Under Wine the app starts but cannot draw text (Wine's DirectWrite does
not implement font-set matching), so its Windows rendering is untested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Logs: every unit's as they come (the last 500 first, 5000 kept), one
unit's on its own, following or held; terminal colours stripped; a
virtual list, so thousands of lines cost nothing. The follow starts
when the page is first opened and reconnects by itself.
- Linux (development, tests): the service's children get SIGKILL when it
dies (PR_SET_PDEATHSIG), as the Job Object does on Windows; a killed
service no longer leaves sing-box running (the e2e test leaked one per
run).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bridge: ps-client on a tokio runtime of its own, awaited from GPUI's
executor; log following as a channel that reconnects.
- model: status polled every 2 s (outbounds every fifth round and on a
reconnect), the zapret presets and tg links on connecting, and changes
sent through ps-client's edits; what came of each is a notification,
the service's own words when it refuses or cannot apply.
- The window: a sidebar of pages; the overview shows the local proxy, the
DPI bypass and the Telegram proxy with their states and switches, and
what the service warns of. The other pages come next.
- Icons: the components' own and the few the app adds, not all of Lucide.
- zapret's engines by upstream's names (zapret-discord-youtube, zapret2).
- gui-shot.sh can click before the shot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ps-client: the service's client side, moved out of proxy-ctl: calls,
configuration edits against the revision read (retried on a concurrent
change), log following, and the edits themselves as functions on the
configuration (outbounds, subscriptions, rules, zapret, tg-ws-proxy),
now unit-tested. proxy-ctl does what it did, through it; a refused log
follow is now an error instead of nothing.
- ps-gui: proxy-suite, the desktop app on GPUI (gpui-kit 0.8.1); only a
first window yet. Not in default-members: plain cargo build/test and the
release workflow's tests leave GPUI out.
- tools/gui-shot.sh: runs the app on Xvfb with Mesa's software Vulkan and
screenshots it, to check the GUI on Linux without a display.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The once-per-process guard recorded the root before ensure_root ran. A
first check that failed (the service log's create_all ignores its error)
left the root marked as checked, so run()'s create_all skipped the check
and the service went on with a root it could not secure, and runs what
is under its bin\ as SYSTEM. Now only a check that passed is recorded,
under the lock, and a failed one fails again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- README for the Windows port: what this release does, what has been
verified and how, install, first run, who may change what, caveats.
- install.cmd / uninstall.cmd ask for administrator rights and run the
service's own install/uninstall.
- tools/package.sh builds the release zip with every component staged
and pinned; tools/wine-install-test.sh exercises install, the pipe and
uninstall under Wine's Service Control Manager.
- Release profile: thin LTO, stripped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ps-ipc: line-delimited JSON over a named pipe whose ACL admits SYSTEM,
Administrators and (with userControl) the interactive user; the caller
is identified by impersonation, never by what it claims. A Unix socket
stands in off Windows.
ps-service (proxy-suite-service.exe): a Windows service, or --console.
Keeps the configuration with revisions, runtime state and generated
secrets; renders, checks with sing-box check before replacing what
runs, and supervises the backends (restart with backoff, start limit,
logs in a ring and a file, a Job Object on Windows). Enforces scopes,
admin-only edits and secret redaction that round-trips. Fetches
subscriptions and rule sets through the proxy or directly with
upstream's redirect rules, on timers.
ps-ctl (proxy-ctl.exe): status, restart, logs [-f], config get/set/
validate, and proxy on/off, outbounds, pin, mode, subs, rules,
rulesets, tun and config.
An end-to-end test runs it all offline: a sing-box Shadowsocks server,
the service, proxy-ctl adding the outbound, a page fetched through the
local proxy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start of the native Windows port. windows/ holds a Rust workspace; this
first piece is ps-core's model of the services.proxy-suite option tree,
with upstream's names and defaults, Windows-only additions documented,
validation ported from the module's assertions, and the derived tags and
loopback ports the tunnels add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>