windows: Tor
- tor: the Tor Project's Expert Bundle for Windows (15.0.26) as a component, pinned by the hash of the release whose signature was checked against the Tor Browser Developers' key; the installer takes gzipped tars now (plain files only: a link could point anywhere). - The torrc upstream's tor.nix writes: SOCKS for the tor outbound, bridges with the bundle's lyrebird (obfs4, webtunnel, meek, snowflake) and conjure, the local proxy as upstream (upstream = "proxy") with its login, extraConfig. The control port is on loopback with cookie authentication (upstream's is a Unix socket only Tor's user opens). Values are quoted with control characters escaped: a newline in, say, the proxy's login would otherwise start a directive (one that runs a program, as SYSTEM). - Tor's own connections go direct under the TUN unless upstream = "proxy". The onion service (for the inbounds) is still to come and is said to be. - Checked: Windows' tor.exe, under Wine, takes a torrc of this shape, bridges and escaped values included; on Linux the service runs Tor and it bootstraps as far as this network lets it without bridges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
82fe4d8e65
commit
40221e7981
12 files changed
+282
-14
No files matched your search
@@ -48,8 +48,10 @@ impl Components {
|
||||
if cfg!(windows) {
|
||||
return None;
|
||||
}
|
||||
// Development: the system's program of that name (a bundle's "tor/tor" is "tor").
|
||||
let bare = std::path::Path::new(&file).file_name()?.to_owned();
|
||||
let path = std::env::var_os("PATH")?;
|
||||
std::env::split_paths(&path).map(|dir| dir.join(&file)).find(|p| p.is_file())
|
||||
std::env::split_paths(&path).map(|dir| dir.join(&bare)).find(|p| p.is_file())
|
||||
}
|
||||
|
||||
pub fn sing_box(&self) -> anyhow::Result<PathBuf> {
|
||||
|
||||
Reference in new issue
Block a user