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>
52 lines
1.3 KiB
TOML
52 lines
1.3 KiB
TOML
[package]
|
|
name = "ps-service"
|
|
description = "Proxy Suite for Windows: the service that runs the backends"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "proxy-suite-service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
ps-core.workspace = true
|
|
ps-ipc.workspace = true
|
|
anyhow.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tokio.workspace = true
|
|
clap.workspace = true
|
|
reqwest.workspace = true
|
|
rustls.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
rand.workspace = true
|
|
base64.workspace = true
|
|
x25519-dalek = { version = "2", features = ["static_secrets"] }
|
|
sha2.workspace = true
|
|
zip.workspace = true
|
|
flate2 = "1"
|
|
tar = { version = "0.4", default-features = false }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-service.workspace = true
|
|
windows-sys = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_JobObjects",
|
|
"Win32_Security_Authorization",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Registry",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Threading",
|
|
"Win32_Networking_WinInet",
|
|
"Win32_System_RemoteDesktop",
|
|
"Win32_System_Environment",
|
|
"Win32_NetworkManagement_WindowsFilteringPlatform",
|
|
"Win32_System_Rpc",
|
|
] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|