windows: zapret2's verdicts route the proxy; options kept to what they are

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>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 18:16:48 +03:00
1 parent 9eed225ccc
commit 514ffb97ca
10 files changed
+305 -27

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ The desktop app: Proxy Suite now has a window and a tray icon, besides `proxy-ct
`install.cmd` puts it in the Start Menu and starts it at every sign-in, in the tray.
### Also
- zapret2: z2k's strategies (`strategySource = "z2k"`), made by z2k's own generator; upstream's Lua around either source: each site's working strategy kept across restarts, strategies keyed by site, and the extended detector (`autoHostlist.extendedDetection`), which also learns sites blocked only some of the time and requests that never get an answer. On the DPI bypass page too.
- zapret2: z2k's strategies (`strategySource = "z2k"`), made by z2k's own generator; upstream's Lua around either source: each site's working strategy kept across restarts, strategies keyed by site, and the extended detector (`autoHostlist.extendedDetection`), which also learns sites blocked only some of the time and requests that never get an answer. By its verdicts the proxy carries what zapret2 cannot fix (`proxyFallback`) and sends what it fixes direct (`directSync`). On the DPI bypass page too.
- zapret's `hostlistRules`: a group of sites with its own strategy, copied from a preset (or another one, `configName`) or given as `nfqwsArgs`, ahead of the preset's own; every preset with them checked by Flowseal's `winws.exe`.
- The SSH tunnel (`sshProxy`): Windows' own OpenSSH as a SOCKS listener for other programs, and, with `asOutbound`, an outbound of the proxy. Needs Windows' "OpenSSH Client" (there by default since Windows 10 1809).
- Tor (`tor`): the Tor Project's own Windows build, with bridges (obfs4, webtunnel, snowflake, meek, conjure) and, with `asOutbound`, an outbound of the proxy.
@@ -41,7 +41,7 @@ Download `ProxySuite-0.2.0-pre.1-windows-x64-setup.exe` and run it (its SHA-256
The zip is still there, the same files with `install.cmd`.
### Not yet
Tor's onion service, the kill switch, server inbounds, the XRay-only backend, zapret2's proxyFallback and its 16 KB cutoff probe.
Tor's onion service, the kill switch, server inbounds, the XRay-only backend and zapret2's 16 KB cutoff probe.
### Note
Unlike upstream, the signed-in user may change every setting by default (`userControl`), except the ones that could run programs or read files as SYSTEM: those always need an administrator. On a shared computer, restrict `userControl.scopes`.