windows: zapret2's 16 KB cutoff probe

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>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 23:12:43 +03:00
1 parent d33f05c62c
commit 803e18db9d
19 files changed
+721 -18

No files matched your search

+1
View File
@@ -10,4 +10,5 @@ Each has its SHA-256 in the `.sha256` file next to it. SmartScreen may warn of a
### New
- **Updates from the app**: its Overview says when a newer release is out and installs it. The service fetches the setup program from this project's releases, checks its SHA-256 against the one published beside it and runs it silently; the service and the app close for a moment and start again, new, settings kept. Also `proxy-ctl update` and `proxy-ctl update install`. It looks at start and daily (Settings → This app turns that off). This is the first release that has it: from 0.2.0-pre.1, update by running the new setup.
- **zapret2's 16 KB cutoff probe** (`zapret2.cutoff`, on by default, as upstream's): some lines cut TLS to certain hosting networks after about 16 KB, which no strategy fixes. z2k's probe finds those networks daily (or when the line's network changes) and, with z2k's strategies, a name that gets through for each, which z2k puts into a fake hello; what no name fixes goes through the proxy, by address (`cutoff.proxyFallback`). The probe's connections leave from ports winws2 leaves alone. On the DPI bypass page, or `proxy-ctl zapret cutoff [probe]`.
- **A dark theme**: light, dark, or as Windows is set (the default), in Settings → This app or at the sun/moon in the sidebar; the window's title bar follows it.