Can’t configure bitocoind to only send tx via Tor but receive clearnet transactions #14692

issue ultimatevert openend this issue on November 8, 2018
  1. ultimatevert commented at 9:17 pm on November 8, 2018: none

    There does not seen to be a way to enable onlynet=onion for sending only and regular clearnet for receiving only.

    I expected that onlynet=onion would mean outbound connections from only onion nodes. This sort of works but I need to manually add nodes and then if a node is not open also to the outside I am in an isolate Bitcoin network. I also do not seem to be getting any inbound connections with onlynet=onion is this because my IP is always different under Tor and I need to post my .onion domain somewhere for people to find?

    0.17

    Ubuntu 18.04

  2. fanquake added the label P2P on Nov 9, 2018
  3. laanwj added the label Feature on Nov 12, 2018
  4. laanwj commented at 1:39 pm on November 12, 2018: member

    This is indeed currently not possible.

    Mind that transactions are broadcasted over both incoming and outgoing connections.

  5. kristapsk commented at 1:50 pm on November 12, 2018: contributor
    This seems like a good idea to me. New configuration option would be needed, for example, “onlybroadcastnet=onion” or something like that.
  6. kristapsk commented at 11:34 pm on November 13, 2018: contributor

    Looked at the code, at the first sight this does not seem too hard to implement. So, if there aren’t any strong NACK’s against the concept, I could work on this.

    It seems to me such configuration, where node receives transactions and blocks from both clearnet and Tor, but only broadcasts transtactions via Tor, helps against some of the issues mentioned in this paper.

  7. ultimatevert commented at 2:15 am on November 24, 2018: none

    I agree with what you say and think it would be cool to have this as an extra option.

    I am also think having the option onlybroadcastnet=onion AND onlybroadcastnet=tor would be useful. The tor option would use tor to connect to normal nodes through tor, that won’t solve the issue the paper presents but it could help with anonymity for people that use their full node as a wallet.

  8. rytido commented at 9:18 pm on January 13, 2019: none
    I believe this functionality is possible currently if you just keep your port closed, right? I have the standard 8 outbound connections, but also allow inbound via Tor this way.
  9. ultimatevert commented at 8:09 pm on February 12, 2019: none

    Although you have 8 standard connections (outgoing) and tor connections (inbound), when your node broadcasts a transaction you will broadcast to all outgoing and inbound (hence broadcast). I desire a set up where I can configure if my node sends its transaction ONLY to outgoing connections OR inbound connections. I don’t think the software can make that distinction though so it is probably easier to have an option that only broadcasts via onion, as someone else mentioned.

    One setup is to configure Tor support to the node, the public key will get created, bhasdhsa.onion, as an example and I can give that to other people and I will have inbount connections via that onion service. The problem still exists where I will still broadcast to both onion and non onion.

    Another setup is to have onlynet=onion so that my outgoing connections are only to onion services, previous nodes that added me would still be able to connect as my clearnet port is still open/working. Now the final kicker would be a setting such as ‘onlybroadcast=onion’ which will make my node only broadcast via .onion service outgoing connections but still receive transactions from clearnet via inbound connections. This should also help solve the “Why bitcoin over Tor isn’t a good idea” scenario, because your node is still opened to the clearnet.


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-11-21 15:12 UTC

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