XRay alone (proxy.backend = "xray"), as upstream's xray.nix and its
start-time filter make it: the mixed-in listener with its login, DNS remote
and local ordered by the route mode with the servers' names on local,
IPIfNonMatch routing in upstream's order and modes, zapret's direct lists;
urltest as prefixed tags under a leastPing balancer and observatory, a pin
or first as one exit; chains by dialerProxy; Tor, SSH, WARP, AmneziaWG and
whitelist-bypass as SOCKS hops. What needs sing-box is refused for it, as
upstream asserts (TUN, groups, rule sets, autoProxy, selector/failover,
DoT, dns.strategy and the like). The service checks it with xray run -test
and runs it with its component's geodata (XRAY_LOCATION_ASSET); latency
tests and autoProxy stand aside.
zapret beside the TUN: winws2 gets the TUN's addresses left out in its
--wf-raw-filter (with the cutoff probe's ports); Flowseal's winws, which
takes no ANDed part, gets its own filter as it saves it (--wf-save) with
them left out, through --wf-raw. WinDivert negates single tests only: the
part is spelled positively, and compiled by WinDivert's own parser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every page, the tray's menu and tooltip, and the notifications, as Windows'
display language is (GetUserDefaultUILanguage) or as chosen in Settings >
This app. English stays the key in the code: tr()/trf() (i18n.rs) look it
up in the page's own RU table. What the service says and proxy-ctl stay
English.
Changing the language rebuilds the window on the same page. That needed the
window's handle untyped: gpui-kit's Root holds the view, so the typed handle
was always None, and the tray's Open made a second window rather than
raising the first (fixed too). An AmneziaWG outbound no longer shows its
kind twice. tools/screenshots.sh takes SHOT_LANGUAGE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream's cutoff.nix and cutoff-probe.template.sh: z2k-detect (built from
z2k's pinned source for Windows, in zapret2-extras) finds the networks this
line cuts after ~16 KB, and with z2k's own strategies a whitelisted name per
network; z2k-tcp16.lua inside winws2 reads the maps (Z2K_TCP16_*, their
digest in the environment so a new map restarts winws2); what no name fixes
goes to the zapret-cutoff rule-set for the proxy (cutoff.proxyFallback).
Upstream keeps zapret2 off the probe with an nft cgroup rule. Here
z2k-detect is patched to dial from a local port range
(Z2K_TCP16_LOCAL_PORTS, 44000-47999, below Windows' dynamic range) and
winws2 gets --wf-raw-filter leaving that range alone; under the TUN the
probe and the service's own lookups of the line's network go direct.
Rounds as upstream's timer: 5 min after start, every 10 min, probing when
the line's network (ipinfo.io and ifconfig.co agreeing) changed or a day
passed. Request::ZapretCutoff, proxy-ctl zapret cutoff [probe], a card on
the DPI page. Verified live on a line that cuts (25 networks, a name for
each), the Windows z2k-detect under Wine, winws2 --dry-run and --wf-save
with the filter. gui-shot's scroll takes a count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The service looks at the project's releases (windows-v* tags; pre-releases
for a pre-release), fetches the newer setup program, checks its SHA-256
against the one published beside it, and runs it silently, detached, out of
any job: the setup stops the service, replaces it, and starts it again.
Run by the service (session 0), the setup's install starts the app in each
signed-in user's session with their token rather than through Explorer. A
failed copy during an upgrade starts the old service and app again.
Request::UpdateCheck (anyone), UpdateInstall (services scope);
proxy-ctl update [check|install]; the app's Overview card.
The app's own preferences (%APPDATA%\ProxySuite\app.json): the theme
(light, dark, or as Windows, followed as it changes; the title bar too) and
whether to look for updates at start and daily. Settings > This app, and a
sun/moon toggle in the sidebar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As upstream's direct-sync: from zapret2's lists and the detector's
verdicts, two rule-sets sing-box reloads, rebuilt every ten seconds and
before it starts: what zapret2 cannot fix (every strategy failed for a
site, or an address leaves connections unanswered) through the proxy
(zapret2.proxyFallback), after the explicit rules and autoProxy's; what
it fixes direct, so it sees it (directSync), unless learned from
transfers cut short. all-bypass and all-proxy as upstream.
The options file winws2 reads (one a line) refuses an option holding a
control character, which would read as more options than it is; and
zapret2.ports.extraTcp/extraUdp, which join its options as written, are
ports or ranges within 1-65535 (validated, and filtered again).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The zapret2-extras component (tools/build-zapret2-extras.sh): z2k at
upstream's pinned commit, its strategies made by its own generator as
upstream's z2k-profiles.template.sh runs it, with tokens where upstream
fills in the configuration at build time; its Lua, lists and fakes; and
upstream's own Lua: the extended detector (detect.lua), the per-site key
by public suffix, the fail stamp, every-change persistence and the
strategy log.
winws2 now runs, as upstream's nfqws2 does, with z2k's Lua for its
strategies, then the layers: each site's working strategy kept across
restarts (z2k's state layer), strategies keyed by site, and with
autoHostlist.extendedDetection the detector learning in place of
nfqws2's own (its last TLS profile, the stall watch where the learned
sites are). Lua arguments name paths as Cygwin does (no colon); what
winws2 writes stays under the Low-integrity folder. The server's TLS
handshake and alert records reach the detectors through a WinDivert
filter part: WinDivert has no per-flow packet window to hand them over
by. Options go to winws2 in a file (@file): z2k's alone are 55 KB, past
a Windows command line.
Both sources, with every layer, verified by winws2's --dry-run under
Wine (tools/winws-dry-run.sh). The DPI page picks the strategies and
switches the detection. proxyFallback and the cutoff probe are said to
be not on Windows yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
package.sh builds the amneziawg component (awg-tunnel.exe, Wintun);
the setup test adds a system-wide profile and checks its tunnel service
registered (Wine's sc has no qc: its registry key), started (the tunnel
runs as a service up to Wintun, which Wine lacks; its log read back),
and removed with its profile. README and notes say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As upstream's sampler and slow judge: every minute, eleven Clash API
snapshots a second apart; a site whose best direct transfer never beat
slowBelowKiBps three times is owed an exit, and gets the first, in probe
order, that answers it as well as direct does (probe --via); routed
slow, it moves on after crawling twice there, and with no exit left it
stays direct for a TTL. Here the Clash API is always on, so it works
whatever the selection.
The app's autoProxy page: on or off, a site probed or learned, the sites
routed (forget one or all), the exits (bad ones marked), the exclusions
and the slowness threshold. tools/screenshots.sh takes every page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
ProxySuite-<version>-windows-x64-setup.exe (NSIS, English and Russian):
it unpacks the release into its temporary folder and runs the release's
own proxy-suite-service.exe install from there, as install.cmd does from
the zip (unpacked straight into Program Files, an upgrade would find its
files in use). It refuses 32-bit Windows and anything before 10 1903, and
offers Windows' OpenSSH Client, unchecked, for the SSH tunnel.
install now writes the entry in Settings > Apps (uninstall.cmd; quietly,
the service's uninstall), and uninstall removes it, with WinDivert's
driver service when it is the suite's own.
The release workflow publishes the setup beside the zip. The app's
icon and GPUI's manifest share one resource (llvm-rc for both); the
build scripts' clones retry, and are kept for the next build.
Tested under Wine: tools/wine-setup-test.sh.
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>
- hostlistRules (zapret-discord-youtube): a group of sites with its own
strategy, as upstream's patch-zapret-config.py makes them: the
preset's profiles for the rule's family (or another preset's, with
configName; Discord's voice profile with it), pointed at the rule's own
list with the standard excludes, or the rule's nfqwsArgs; ahead of the
preset's own. WinDivert's filter takes the ports they add. Rules with
enableDirectSync join the direct list. Names of zapret's own lists, and
the instagram/soundcloud/twitter families (not in Flowseal's Windows
release), are refused. Every preset with sample rules checked by
winws.exe --dry-run (tools/winws-dry-run.sh); one without the profile
a rule copies is refused, as upstream refuses it.
- The SSH tunnel (sshProxy): Windows' own OpenSSH (System32) as ssh -N -D,
with upstream's options and only the configured key offered
(IdentitiesOnly: an agent's keys used up the server's tries); the key
copied below the protected state root, as Windows' OpenSSH wants it and
sing-box's SSH outbound reads it; the server's keys from hostKey,
hostKeyFile or knownHostsFile. End to end on Linux against an sshd of
the test's own: a page through each, two logins with the copied key.
- The dev shell has OpenSSH, for that test.
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>
.gitea/workflows/windows-release.yml builds the Windows release in the
repository's own Nix dev shell (pinned Nix installer, checked by hash),
tests, packages, and on a tag windows-v<version> publishes the zip and
its .sha256 to a Gitea release with windows/release-notes/<version>.md.
Run by hand it only builds. As upstream's workflow: the job that runs
fetched code holds no token that can write; only the publishing job sees
RELEASE_TOKEN, and it runs curl and jq on the first job's artifact.
rust-toolchain.toml pins the toolchain the release is built with.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>