From 2b882390241878a880f10585fdff93f2f8fc7b13 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Mon, 23 Sep 2024 17:00:40 +0800 Subject: [PATCH] wip Signed-off-by: Eval EXEC --- docs/tor.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/tor.md b/docs/tor.md index 3ea9d1ab5f..266bbf6d8c 100644 --- a/docs/tor.md +++ b/docs/tor.md @@ -2,9 +2,21 @@ 1. make sure tor server is running and listening. (By default tor will listening on port 9050 ) +You can get a default torrc file by searching `--torrc-file` in `man tor`, it will tell you where the default torrc file location in your OS. + +``` + -f, --torrc-file FILE + Specify a new configuration file to contain further Tor configuration options, or pass - to make + Tor read its configuration from standard input. (Default: + /nix/store/gacp048mx3m4q48gl5rlspw2j33328v4-tor-0.4.8.11/etc/tor/torrc, or $HOME/.torrc if that + file is not found.) +``` +You may need start tor service by your owned `torrc` + ```bash # Start tor service -tor +tor -f /path/to/your/torrc + ``` Check tor is listening on 9050: @@ -48,5 +60,8 @@ curl -x socks5h://127.0.0.1:9050 https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfi curl -x socks5h://127.0.0.1:9050 -s https://check.torproject.org/api/ip ``` +TODO: get bridge from https://bridges.torproject.org/options + +Config `UseBridges` `ClientTransportPlugin` related config in `torrc` file. 4. view tor's log (may need to enable more verbose log in tor's torrc config file)