windows: the kill switch
Upstream's killSwitch, on the Windows Filtering Platform: while the TUN or a system-wide AmneziaWG profile is on, connections that would leave past it are blocked at the ALE connect layers, while the tunnel runs, restarts or has failed. Open: loopback, the private and reserved networks with allowedSubnets, what leaves from the tunnels' own addresses, the tunnel's own programs (the backend, its helpers, awg-tunnel; the service with directFallbacks), NTP with allowTimeSync. Turning a tunnel off, or proxy-ctl killswitch off / the Overview's Lift, lifts it until a tunnel is turned on again. The filters live in a dynamic WFP session of the service's: they go with it, so stopping the service always gets the network back. Upstream holds from boot; that needs persistent filters, for once these are seen to work on real Windows (Wine has no WFP). A changed plan goes in under the other of two sublayers before the old one goes, so nothing leaks between. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddc1bbe686
commit
32ff264c81
12 files changed
+557
-9
No files matched your search
+4
-2
@@ -31,10 +31,11 @@ tray icon) or with `proxy-ctl`, as upstream's is.
|
||||
| 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`, alongside zapret too — **see the caveats** |
|
||||
| Kill switch | `killSwitch`: while the TUN or a system-wide AmneziaWG profile is on, what would leave past it is blocked (Windows Filtering Platform filters, in the service's session); LAN, DHCP, NTP and the tunnel's own programs stay open. `proxy-ctl killswitch [on\|off]`, or the Overview |
|
||||
| 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 and server inbounds. Their options are accepted (they are upstream's), but the
|
||||
Not in this release, still to come: Tor's onion service 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.
|
||||
@@ -61,6 +62,7 @@ DPI bypass, which runs on Windows only, shows as inactive.
|
||||
| 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 |
|
||||
| The kill switch | its plan (what stays open: local networks, the tunnels' addresses, their programs, NTP; when it holds and when it is lifted) by unit tests; the Windows Filtering Platform filters built and compiled for Windows. Not run: Wine has no Windows Filtering Platform, so whether the filters block and let through as meant needs real Windows |
|
||||
| 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`) |
|
||||
|
||||
Reference in new issue
Block a user