Title: Bitcoind, setup a tor Post by: 7light7 on March 26, 2023, 09:51:47 PM Hello, if anyone knows how to set up a tor network in bitcoind, please describe how it is done.
Creating of bitcoin.conf with "proxy=127.0.0.1:9050 onlynet=onion" in directory ~/.bitcoin doesn't work Thank you in advance Title: Re: Bitcoind, setup a tor Post by: vv181 on March 27, 2023, 05:52:44 AM You need to give us more information. Refer to [READ BEFORE POSTING] Tech Support Help Request Format (https://bitcointalk.org/index.php?topic=1741772.0)
Title: Re: Bitcoind, setup a tor Post by: nc50lc on March 27, 2023, 06:17:46 AM For starters, just follow the instructions in the reference client's GitHub repository: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md (https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md)
Since there's limited info, I'll just ask if you've setup a custom data directory? Because is you did and set it up via the GUI's "Welcome Screen" or as a command line option, the bitcoin.conf file should be in that directory instead. If not, it must be something else. Title: Re: Bitcoind, setup a tor Post by: 7light7 on March 27, 2023, 09:02:48 PM Thank you your answer.
I installed full node from this guide and everything works very well, but I can't set up tor in bitcoind. https://howchoo.com/bitcoin/run-bitcoin-full-node-raspberry-pi Bitcoin core installed in home directory Tor is installed and active The bitcoin.conf file looks like "proxy=127.0.0.1:9050 onlynet=onion debug=tor" But if call getnetworkinfo onion have parameter reachable=false If it need more information please write I will give it My main goal is just to have all bitcoin core traffic go through tor Title: Re: Bitcoind, setup a tor Post by: NotATether on March 28, 2023, 11:22:15 AM Tor is installed and active The bitcoin.conf file looks like "proxy=127.0.0.1:9050 onlynet=onion debug=tor" But if call getnetworkinfo onion have parameter reachable=false If it need more information please write I will give it Is your user account part of the Tor group? Since you're on Raspbian, run this: Code: sudo adduser <your-user> debian-tor Then log out and log in again. Do this so you will be able to access Tor, otherwise it will not allow you to do that and your Tor proxy will give you a permissions error. Title: Re: Bitcoind, setup a tor Post by: 7light7 on March 28, 2023, 02:13:58 PM Quote reachable=false means other node cannot connect to your node. But since getnetworkinfo return "network" with name "onion", that means your node already use Tor. Although if you want to configure your node to be reachable, you'll to perform additional configuration using guide which mentioned by @nc50lc. Thank you very much, I don't know this moment that "getnetworkinfo return "network" with name "onion", that means your node already use Tor." Now it’s clear that I need to raise a hidden service so that other onion peers can connect to me. One more thank you very much Title: Re: Bitcoind, setup a tor Post by: BlackHatCoiner on April 04, 2023, 01:38:48 PM In addition to what SamReomo has suggested above, check if you're pointing to the correct configuration file. Sometimes you just mess up with this, and it looks to a different data directory. If you're using the command line, add
Code: --conf=/<your_directories_here>/bitcoin/bitcoin.conf Check for firewall rules: If you have a firewall configured on your system, it might be blocking the Tor or Bitcoind traffic. Make sure that you have allowed incoming and outgoing connections for Tor and Bitcoind. It's unlikely to be a firewall issue, unless the OP altered those rules. In all systems I've tested, Tor and Bitcoind work fine with default rules. |