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>
Each profile without asOutbound is a tunnel service of its own,
AmneziaWGTunnel$<interface>, as amneziawg-windows's client installs one:
amneziawg-go on Wintun, its routes and DNS, and for one peer that takes
everything its firewall blocking what would leave outside the tunnel.
It runs awg-tunnel.exe, amneziawg-windows built from its pinned commit
with a main of ours (its Run(), its log in a file) instead of its
tunnel.dll, beside Wintun's signed DLL (tools/build-amneziawg.sh).
The service writes each profile's .conf below its state root, registers
the tunnel (unrestricted service SID, which its firewall exempts it by),
starts the autostart ones with itself, and removes the tunnels of
profiles gone, and all of them on uninstall. proxy-ctl awg
list|on|off|log, and the app's AmneziaWG page: profiles (a system-wide
one switched on and off, its log), one added from a vpn:// link or a
.conf, or removed.
tools/lib.sh: clone_commit, and fetch_pinned, which fetches in pieces a
download that stalls (some networks cut TLS after about 16 KB, as
wintun.net's here).
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>
Opened from Explorer, its window's working directory is the install
folder, which Windows then cannot remove while the window waits at its
pause: the files went, the folder stayed.
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>
A page for whitelist-bypass: on or off; joiners with their state and the
call link to join; creators with theirs, their call link to copy, a new
call, and their login (a cookies export picked from disk, or DION's and
Bitrix's email and password); adding and removing either.
The app carries an icon now (tools/make-icon.py draws it; llvm-rc makes
it the exe's resource 1, where GPUI, Explorer and the Start Menu take it).
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>
- 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>
- 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>
Adding an outbound from a share link or a backend's JSON (checked here
first, by the same parser as proxy-ctl; tagged from the link unless
named); the list with each one's source, backend and detour, pinned or
left out, its delay on request, and remove for the user's own; the
routing mode; subscriptions added, updated and removed.
dev-service.sh: the demo server resolves names over HTTPS (sing-box needs
a resolver for its direct outbound, and plain DNS may be blocked).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zapret on or off and its engine; for Flowseal's presets, the preset (the
release's own list, matched as the service matches names) and game
traffic; for zapret2, learning, IPv6 and the strategy log; the sites to
handle besides the engine's lists and the sites to leave alone; TCP
timestamps. News from the service replaces what the user has not
changed, never what they are typing; a save shows the list as saved.
ps-client: set_path for any one option, set_zapret_sites (tidied,
deduplicated). gui-shot.sh takes ordered steps: click, type, key, wait.
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>
- zapret-presets: the presets of the installed zapret release and the one
configured; proxy-ctl zapret presets.
- tg-links: tg-ws-proxy's tg:// links (dd, and ee with a fake-TLS
domain), as it prints them; they carry its secret, so the secrets scope.
proxy-ctl tg link. No more reading them out of its log.
- tools/dev-service.sh: the service on Linux with a demo outbound, for
working on the app.
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>
- 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>
- Every request is authorized before it is handled, including `logs -f`,
which skipped the check.
- The state root is checked once per process: a second check under Wine
moved the live root (and its log) aside.
- uninstall removes Program Files after it exits: cmd got a garbled
quoted command line; it now runs raw, outside the folder, windowless.
- install no longer fails when the first start does; it says how to start.
- `proxy-ctl proxy tun on` also turns on proxy.tun.enable.
- build-tg-ws-proxy.sh resolves its output path before changing directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ps-core::zapret2 reads nfqws2-keenetic's nfqws2.conf and patches it as
upstream's sources.nix does, expands the hostlist markers as zapret2's
list.sh does (autohostlist with its detector settings, the configured
domains), fills circular's unset detector settings from autoHostlist,
merges the extra ports into the profiles that tell traffic by protocol,
and gives winws2 WinDivert port filters in place of the queue's rules.
The service runs it with the learned list in a directory labelled Low
integrity, where winws2 can still write once it drops to Low. winws2
verifies the whole command line under Wine.
detect.lua, z2k and the cutoff probe are not there yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zapret: Flowseal's release run as its service.bat runs it: the preset's
winws.exe line (continuations, cmd's caret escapes, %BIN%, %LISTS%, the
game filter) as winws's arguments, the user's domains and addresses in
the lists upstream's module puts them in (kept in the service's own run
directory, the verified release untouched), TCP timestamps on, and
zapret's sites in the proxy's direct list. tools/winws-dry-run.sh has
the release's own winws.exe verify every preset's arguments under Wine:
all 22, both game filters.
tg-ws-proxy: Flowseal's headless proxy on the embeddable CPython 3.12
with hash-pinned win_amd64 wheels (tools/build-tg-ws-proxy.sh), run with
upstream's flags; its relay goes direct under the TUN. Runs under Wine.
proxy-ctl: zapret status|on|off|preset|game-filter, components
list|install.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
components.json pins sing-box, XRay, Flowseal's zapret, bol-van's
winws2 bundle with nfqws2-keenetic's strategies, and tg-ws-proxy (built
with the release): release assets by archive hash, commit snapshots by
the hash of every file taken. The service installs them (admin only),
staged and swapped in, refusing archive paths that leave the directory,
and checks each program against the hashes recorded at install before
running it. stage-components does the same for building a release.
The state root is created with its protected descriptor in one call,
or, existing, checked through a handle that does not follow links.
tools/wine-e2e.sh runs the Windows build under Wine: the service, the
named pipe, impersonation, the component check, rendering and the
supervisor all work; Wine lacks an iphlpapi call sing-box needs, so
proxying itself needs real Windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ps-core::links ports upstream's proxy_url_parsers.py and proxy_parsing.py:
every scheme, each backend's refusals, XRay rendering, subscription
decoding, tags and the server checks. Upstream's build-outbound tests
are ported case for case, and tools/parity/links.py runs ~750 links
through both implementations: no differences.
config::privileged_changes names the edits only an administrator may
make: anything that runs a program, passes arguments through, or names
a local file, since the service runs as LocalSystem. Names that become
paths or service names are validated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>