doc: reflect the current status of Tor support. #20091

pull Saibato wants to merge 1 commits into bitcoin:master from Saibato:pr-351-doc changing 1 files +14 −4
  1. Saibato commented at 9:05 am on October 6, 2020: contributor
    This is striped from #19358 to reflect the current behavior and implications of the Tor implementation in core.
  2. fanquake added the label Docs on Oct 6, 2020
  3. doc: Reflect the current status of tor support in doc/tor.md.
    Craft a more elaborate description of what those options in regards to
    tor or network traffic do.
    Some wording is picked from laanwj review in # 19358.
    5fdf7f3fac
  4. Saibato force-pushed on Oct 7, 2020
  5. in doc/tor.md:21 in 5fdf7f3fac
    18+	                outbound access to onion services.
    19 
    20 	-onion=ip:port  Set the proxy server to use for Tor onion services. You do not
    21-	                need to set this if it's the same as -proxy. You can use -noonion
    22+	                need to set this if it's the same as -proxy. You can use -onion=0
    23 	                to explicitly disable access to onion services.
    


    gmaxwell commented at 10:42 am on October 8, 2020:
    why changing from -noonion here?

    Saibato commented at 2:33 pm on October 8, 2020:
    hmm, i must check my logs what -noonion did in comparison to -onion=0 its probably a tautology with the same effect.or there was an edge issue i forgot. I will check.

    Saibato commented at 11:35 am on October 12, 2020:

    @gmaxwell tyi; the diff was the log line Command-line arg: onion=false if -nonion vs Command-line arg: onion="0" if -onion=0 .

    So since we compare in code like this

    0if (onionArg == "0") { // Handle -noonion/-onion=0
    

    I was wary that some compiler might not set onionArg to “0”; if m_settings.command_line_options == false instead of “0”

    I might be over cautious here?


    gmaxwell commented at 11:40 pm on October 15, 2020:
    Arguments all uniformly support nofoo and foo=0 as being equivalent.
  6. in doc/tor.md:24 in 5fdf7f3fac
    21-	                need to set this if it's the same as -proxy. You can use -noonion
    22+	                need to set this if it's the same as -proxy. You can use -onion=0
    23 	                to explicitly disable access to onion services.
    24+	                Note: Only the -proxy option will set the proxy used for DNS requests.
    25+	                With this option these will not route over Tor.
    26+	                So please use -proxy if you have privacy concerns with this.
    


    gmaxwell commented at 10:43 am on October 8, 2020:
    This seems out of place. If no proxy is set then all traffic, except traffic going to hidden services, is in the clear. This edit makes it sound otherwise.

    Saibato commented at 2:29 pm on October 8, 2020:

    Its more about Tor options doc than anything else, please hint wording alternatives..

    Please note we try to highlight here that -onion in contrast to -proxy sets no name proxy and also up till now the default Tor proxy that would be created in torcontrol is also a leaking ip over DNS ip4/6 calls and will probably leak the onion when seeding at first start.

    The internal nameproxy to try to route all allowed traffic over Tor is only used if -proxy is defined.

    edit@saibato Most might just want to get as connected as possible and might not care much, but since more and more use there full node to gain privacy, i thought we should highlight those config implications a bit more.


    gmaxwell commented at 11:41 pm on October 15, 2020:
    I’m having a hard time following you. Onion related requests are not leaked when you set -onion.
  7. in doc/tor.md:44 in 5fdf7f3fac
    41+	                with other values than onion you can *not* disable onion connections.
    42+	                Onion outbound connections will be enabled when you use the -proxy
    43+	                or the -onion option.
    44+	                Please use -noonion or -onion=0 if you want to be sure to have no
    45+	                outbound onion connections over the default proxy or your defined proxy..
    46 
    


    gmaxwell commented at 10:45 am on October 8, 2020:

    “set of general allowed network types” seems wordy and doesn’t appear to add anything over the original text.

    If onlynet=ipv4 still makes onion connections, that sounds like a bug to me. Is there any discussion about this?


    Saibato commented at 2:29 pm on October 8, 2020:
    thx!. A bug , yup and the bug has ̶e̶v̶e̶n̶ ̶d̶e̶e̶p̶e̶r̶ onions and layers of head scratching, some fix in #19358 sarcastic hacker style ;-) review more than welcome.

    ysangkok commented at 3:46 am on October 13, 2020:
    @Saibato your use of double tilde for mdash (I think that’s what you mean?) makes it look like you strike out your own words, which I don’t think you intended.

    Saibato commented at 8:39 am on October 13, 2020:

    @ysangkok

    I don’t think you intended

    ;-) like it, that u noticed. :+1: was a try to high light without adjectives, while not saying even more harsh words about what happened all those years (was kind of a privacy strike through), since overall slow reaction and some disbelieve, my say it nice clock has almost reached zero

  8. laanwj commented at 4:38 am on October 16, 2020: member

    Even when changing documentation, please make targeted changes and motivate clearly why you make every change. Don’t just change lines all over the document with a two-line PR message and the only information to “reflect the current status of Tor support”. No one can follow you here.

    I’m closing this.

  9. laanwj closed this on Oct 16, 2020

  10. Saibato commented at 5:32 am on October 16, 2020: contributor
    @laanwj this PR was to highlight this issue itself and to have some discussion, we had that and now its clear where positions on this are and what the next steps will be, thx for review and your insight and engagement, Its not your fault, but i guess u now better prepared for the waves and deeper discussions. we all make mistakes and i guess your effort to fix them is an outstanding example how to do such things, with a wink and smile.
  11. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-05 19:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me