windows: the XRay-only backend; zapret beside the TUN
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>
This commit is contained in:
1 parent
2dd563ed61
commit
d675fdddb5
15 files changed
+831
-34
No files matched your search
+9
-7
@@ -19,7 +19,7 @@ tray icon) or with `proxy-ctl`, as upstream's is.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Local proxy | SOCKS5/HTTP on `127.0.0.1:1080` through sing-box (or the hybrid sing-box + XRay backend) |
|
||||
| Local proxy | SOCKS5/HTTP on `127.0.0.1:1080` through sing-box (or the hybrid sing-box + XRay backend, or XRay alone: `proxy.backend = "xray"`, without the TUN, groups, rule sets, autoProxy, latency tests, per-app and program rules, which need sing-box) |
|
||||
| Outbounds | links (vless/REALITY/TLS, vmess, trojan, shadowsocks, hysteria2, tuic, anytls, naive, socks, http), raw JSON, subscriptions, groups (failover, urltest, selector), chains, pins, route modes, routing rules by site, address, geodata, rule set or **program** |
|
||||
| zapret | Flowseal's [zapret-discord-youtube](https://github.com/Flowseal/zapret-discord-youtube) release: `winws.exe` with any of its `general*.bat` presets, your lists, the game filter, and `hostlistRules` (a strategy of its own for a group of sites, copied from a preset or given) |
|
||||
| zapret2 | `winws2.exe` from bol-van's [zapret-win-bundle](https://github.com/bol-van/zapret-win-bundle) with [nfqws2-keenetic](https://github.com/nfqws/nfqws2-keenetic)'s strategies or [z2k](https://github.com/necronicle/z2k)'s (made by z2k's own generator, per category: YouTube, Discord, QUIC, the RKN list), and upstream's Lua around them: each site's working strategy kept across restarts, strategies keyed by site (the public suffix list), and the extended detector, which also learns sites blocked only some of the time and requests that never get an answer. The server's TLS replies reach the detectors through a WinDivert filter part; a download stalling mid-way (the 16 KB cutoff) is not seen on Windows, as WinDivert cannot hand over a flow's first packets alone. By its detector's verdicts the proxy routes too: what zapret2 cannot fix goes through the proxy (`proxyFallback`), what it fixes goes direct so it sees it (`directSync`). The **16 KB cutoff probe** (`zapret2.cutoff`, on by default): some lines cut TLS to certain hosting networks after about 16 KB, which no strategy fixes; z2k's probe (`z2k-detect`, built from its source) finds them 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; the networks no name fixes go through the proxy, by address. Its connections leave from ports winws2 is told to leave alone. `proxy-ctl zapret cutoff [probe]`, or the DPI bypass page |
|
||||
@@ -30,11 +30,11 @@ tray icon) or with `proxy-ctl`, as upstream's is.
|
||||
| autoProxy | `proxy.autoProxy`: the sites apps reach directly are probed through each exit in turn (direct first); one blocked directly but reached through an exit is routed through it, as upstream's prober decides (block pages, one exit per network first, strikes against exits that refuse). Blocks zapret can fix stay direct. A site that crawls directly (`slowBelowKiBps`) moves to the first exit that carries it as well as direct does. Its page in the app, or `proxy-ctl proxy auto`, shows, probes, learns and forgets |
|
||||
| whitelist-bypass | `whitelistBypass`: [whitelist-bypass](https://github.com/kulikov0/whitelist-bypass)'s headless creators and joiners (WB Stream, Telemost, DION, Bitrix; VK creators), built from upstream's source: a joiner is an outbound of the proxy tunnelled through a video call, a creator the call's free end. `proxy-ctl wl` gives the links and logins |
|
||||
| SSH tunnel | `sshProxy`: Windows' own OpenSSH as a SOCKS listener (`ssh -D`) for other programs, and, with `asOutbound`, an outbound of the proxy (sing-box's SSH client) |
|
||||
| TUN | sing-box's TUN (wintun), `proxy-ctl proxy tun on` — **see the caveats** |
|
||||
| TUN | sing-box's TUN (wintun), `proxy-ctl proxy tun on`, alongside zapret too — **see the caveats** |
|
||||
| The app | **Proxy Suite** in the Start Menu, and a tray icon from sign-in: the proxy, DPI bypass and Telegram proxy at a glance and a click; outbounds, subscriptions and the routing mode; zapret's presets and sites; tg-ws-proxy's links; whitelist-bypass's joiners and creators (links, logins); autoProxy's routes, probes and exits; the logs; **every option** in its JSON editor, checked by the service before it takes it; the system proxy; in English or Russian (as Windows is set, or chosen); a light and a dark theme (or as Windows is set); a newer release installed from its Overview |
|
||||
|
||||
Not in this release, still to come: Tor's onion service,
|
||||
the kill switch, server inbounds and the XRay-only backend. Their options are accepted (they are upstream's), but the
|
||||
the kill switch and server inbounds. Their options are accepted (they are upstream's), but the
|
||||
service says, in its status and in the app, that it does not run them yet.
|
||||
|
||||
Needs 64-bit Windows 10 (1903 or later) or 11.
|
||||
@@ -60,6 +60,8 @@ DPI bypass, which runs on Windows only, shows as inactive.
|
||||
| **On real Windows** (0.2.0-pre.1) | the setup program installs it; zapret, zapret2 and tg-ws-proxy work |
|
||||
| Share-link and subscription parsing | upstream's tests, ported; ~750 links through upstream's Python and this, identical results |
|
||||
| sing-box and XRay configs | rendered for many setups and accepted by `sing-box check` and `xray run -test` |
|
||||
| The XRay-only backend | its config (listener login, DNS order and pinned server names, route modes, urltest balancer and pin, chains, helper hops, zapret's direct lists) accepted by `xray run -test` and asserted as upstream's filter vectors are; end to end on Linux: the service running xray with the release's own `geoip.dat`/`geosite.dat`, a page fetched through its listener and a Shadowsocks outbound (urltest, then pinned), a wrong password refused, the latency test refused as upstream refuses it |
|
||||
| zapret beside the TUN | the filter part that leaves the TUN's packets out (IPv4 and IPv6), alone, with the cutoff probe's and around Flowseal's own filter as `--wf-raw` takes it, compiled by WinDivert's own `WinDivertHelperCompileFilter` (under Wine); zapret2's arguments with it checked by `winws2 --dry-run`. Traffic through both needs real Windows |
|
||||
| Service, API, `proxy-ctl` | end to end on Linux: a real sing-box Shadowsocks server, the service, `proxy-ctl` adding the outbound, a page fetched through the local proxy |
|
||||
| Windows build: service, named pipe, its ACL, caller identification, component hashes, supervisor | under Wine (`tools/wine-e2e.sh`) |
|
||||
| zapret arguments | **every** preset of the release, both game filters, checked by the release's own `winws.exe --dry-run` under Wine (`tools/winws-dry-run.sh`) |
|
||||
@@ -205,10 +207,10 @@ program but this project's own setup, from its own releases, checked, and only a
|
||||
|
||||
## Caveats
|
||||
|
||||
- **TUN and zapret together**: upstream keeps zapret's packets off the TUN interface, which
|
||||
this release does not do yet. Use one or the other.
|
||||
- zapret2 learns with nfqws2's own detector, not upstream's extended one; z2k's strategies are
|
||||
not there yet.
|
||||
- **TUN and zapret together**: zapret (winws or winws2) leaves the TUN's own packets alone,
|
||||
by its address in WinDivert's filter, and handles the connections sing-box makes on the way
|
||||
out of the real adapter, direct ones included. Checked by WinDivert's own filter compiler;
|
||||
traffic through both needs real Windows.
|
||||
- The global TUN restarts the local proxy when it is turned on or off (one sing-box does both).
|
||||
- The system proxy is set by the app, for the user it runs as, while it runs: quitting the app
|
||||
puts the user's own setting back.
|
||||
|
||||
Reference in new issue
Block a user