Title: Bitcoin core won't connect over Tor. Post by: Ambivilance on March 17, 2021, 04:16:51 AM I am trying to connect to my full node over tor using my hidden service but it will not connect.
If I put Code: onlynet=onion ??? Title: Re: Bitcoin core won't connect over Tor. Post by: ranochigo on March 17, 2021, 04:53:36 AM Did you get an onion address in the debug.log? Did you configure Tor correctly? Can you add debug=Tor into the config file?
Try following the steps here: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md#3-automatically-listen-on-tor Title: Re: Bitcoin core won't connect over Tor. Post by: Ambivilance on March 17, 2021, 05:14:36 AM yes I got an onion address in the debug
Title: Re: Bitcoin core won't connect over Tor. Post by: NotATether on March 17, 2021, 09:40:12 AM yes I got an onion address in the debug If you run getnetworkinfo from the console or bitcoin-cli and you see something like: Code: "networks": [ Then it means your Tor is misconfigured and you need to check that there is actually a Tor process listening on port 9050 or whichever port you configured bitcoin Core to use. Alternatively if you see a score of zero in the "addresses" section of the output for your onion address then you might have put a custom onion address in the bitcoin.conf that is different from the hidden service that Tor created. Don't specify it in bitcoin.conf so that it finds the onion address automatically. Title: Re: Bitcoin core won't connect over Tor. Post by: Ambivilance on March 17, 2021, 08:47:06 PM yes I got an onion address in the debug If you run getnetworkinfo from the console or bitcoin-cli and you see something like: Code: "networks": [ Then it means your Tor is misconfigured and you need to check that there is actually a Tor process listening on port 9050 or whichever port you configured bitcoin Core to use. Alternatively if you see a score of zero in the "addresses" section of the output for your onion address then you might have put a custom onion address in the bitcoin.conf that is different from the hidden service that Tor created. Don't specify it in bitcoin.conf so that it finds the onion address automatically. OK I did getnetworkinfo and yielded basically this: Code: name onion Also I have 10 connections but they are all out, no in connections if that is of any significance. Title: Re: Bitcoin core won't connect over Tor. Post by: posi on March 18, 2021, 02:26:27 PM Do you by chance edit the respond you provided after using the getnetworkinfo cause status of your ipv4 and ipv6 connections ought to be included.
Follow the above description but if the problem continue that mean you will have to operate over Tor completely by starting it with this option: Code: -onlynet=onion Title: Re: Bitcoin core won't connect over Tor. Post by: BitMaxz on March 18, 2021, 05:31:20 PM Did you just added "onlynet=onion" on bitcoin.conf?
Can you post here the whole text from your Bitcoin.conf here It seems it's not properly set up that is why the debug.log says connection refused. Anyway, use these links and the video guide below to set up your node to run it over TOR service. - Setting up a Tor hidden service (https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service) For two youtube video guides - https://www.youtube.com/watch?v=57GW5Q2jdvw - https://www.youtube.com/watch?v=n2IUYL7hCOI Follow the steps carefully so that you can properly set up it with TOR service. Title: Re: Bitcoin core won't connect over Tor. Post by: Ambivilance on March 19, 2021, 04:45:31 AM Did you just added "onlynet=onion" on bitcoin.conf? Can you post here the whole text from your Bitcoin.conf here It seems it's not properly set up that is why the debug.log says connection refused. Anyway, use these links and the video guide below to set up your node to run it over TOR service. - Setting up a Tor hidden service (https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service) For two youtube video guides - https://www.youtube.com/watch?v=57GW5Q2jdvw - https://www.youtube.com/watch?v=n2IUYL7hCOI Follow the steps carefully so that you can properly set up it with TOR service. txindex=1 server=1 walletbroadcast=0 proxy=127.0.0.1:9150 listen=1 bind=127.0.0.1 addnode=abc....onion Title: Re: Bitcoin core won't connect over Tor. Post by: NotATether on March 19, 2021, 05:09:55 AM OK I did getnetworkinfo and yielded basically this: Code: name onion Also I have 10 connections but they are all out, no in connections if that is of any significance. A non-zero score basically means things are able to connect to your hidden service. I think I know the problem based on the fact that you have no incoming connections. It is because you have: bind=127.0.0.1 So it is only listening on localhost (try to use bitcoin-cli from the same machine and it should work, but not from a machine over the network). Try putting bind=0.0.0.0 to listen on all network interfaces including the one that's connected to the internet, or removing that line entirely to let Core figure out to do that itself. Title: Re: Bitcoin core won't connect over Tor. Post by: Ambivilance on March 19, 2021, 06:19:16 AM I changed the proxy to port 9050 and I have 13 connections (all out) and some are onion nodes.
maybe electrum will connect to my onion now... |