diff options
Diffstat (limited to 'docs/tor.md')
| -rw-r--r-- | docs/tor.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/tor.md b/docs/tor.md index 087c822..69b29f1 100644 --- a/docs/tor.md +++ b/docs/tor.md | |||
| @@ -25,6 +25,17 @@ bitflash -tor=127.0.0.1:9150 | |||
| 25 | bitflash -tor=[::1]:9050 | 25 | bitflash -tor=[::1]:9050 |
| 26 | ``` | 26 | ``` |
| 27 | 27 | ||
| 28 | For a SOCKS5 proxy that is not Tor, use `-socks` directly: | ||
| 29 | |||
| 30 | ```bash | ||
| 31 | bitflash -socks=127.0.0.1:9050 | ||
| 32 | bitflash -socks=[::1]:9050 | ||
| 33 | ``` | ||
| 34 | |||
| 35 | If both `-tor` and `-socks` are present, Tor mode wins and the node prints a | ||
| 36 | warning. That keeps a command line with `-tor` from silently becoming a custom | ||
| 37 | proxy route. | ||
| 38 | |||
| 28 | When Tor mode is enabled: | 39 | When Tor mode is enabled: |
| 29 | 40 | ||
| 30 | - outbound Nostr relay dials use Tor; | 41 | - outbound Nostr relay dials use Tor; |
| @@ -34,6 +45,24 @@ When Tor mode is enabled: | |||
| 34 | - direct `.onion` dials are refused unless a SOCKS5/Tor proxy is enabled; | 45 | - direct `.onion` dials are refused unless a SOCKS5/Tor proxy is enabled; |
| 35 | - plain HTTP external-IP probes are skipped. | 46 | - plain HTTP external-IP probes are skipped. |
| 36 | 47 | ||
| 48 | Tor mode affects outbound discovery and relay dials. It does not encrypt | ||
| 49 | `wallet.dat`, hide mining rewards on-chain, or change the `.btf` identity. A | ||
| 50 | relay still sees the TCP client that connected to it; with Tor mode that client | ||
| 51 | is the Tor exit or onion circuit endpoint instead of the user's direct IP. | ||
| 52 | |||
| 53 | ## What to test | ||
| 54 | |||
| 55 | Use the public status page only as a rough health check. To prove the local node | ||
| 56 | is using Tor/SOCKS, test from the node machine: | ||
| 57 | |||
| 58 | ```bash | ||
| 59 | bitflash -tor -debug | ||
| 60 | ``` | ||
| 61 | |||
| 62 | Then confirm in `debug.log` that Nostr and rendezvous dials report the proxy | ||
| 63 | path. A DNS leak test should show no local resolver lookup for relay hostnames: | ||
| 64 | the SOCKS5 request uses the domain-name form and asks the proxy to resolve it. | ||
| 65 | |||
| 37 | ## Onion rendezvous relay | 66 | ## Onion rendezvous relay |
| 38 | 67 | ||
| 39 | An operator can expose a Bitflash rendezvous relay as a Tor hidden service. The | 68 | An operator can expose a Bitflash rendezvous relay as a Tor hidden service. The |