Bitcoin Forum
May 02, 2024, 06:04:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core Node Windows- Need some help with Tor  (Read 155 times)
aar5ad (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 6


View Profile
June 01, 2022, 04:50:17 PM
Merited by hugeblack (3), ABCbits (1)
 #1

I have a bitcoin node (v23) running on windows 10 Pro; fully synced and a wallet on Spectre (working).  I have 10 outgoing nodes connected (Onion) but no incoming.
I have the Tor service installed, its running and some config settings in bitcoin.conf.
listenonion=1
onlynet=onion
proxy=127.0.0.1:9050
listenonion=1
onlynet=onion
proxyrandomize=1
server=1
listen=1
disablewallet=0
bind=127.0.0.1
blockfilterindex=1
[test]
bind=127.0.0.1
[regtest]
bind=127.0.0.1
[signet]
bind=127.0.0.1

I would like to get incoming connections going on tor but if i run [getnetworkinfo] i show no local addresses and no incoming peers.  Anyone help me with that?
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
1714673085
Hero Member
*
Offline Offline

Posts: 1714673085

View Profile Personal Message (Offline)

Ignore
1714673085
Reply with quote  #2

1714673085
Report to moderator
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7125



View Profile
June 02, 2022, 07:38:02 PM
 #2

I am certainly not an expert in this department but remembered seeing a similar thread in the past about missing incoming peers.
https://bitcointalk.org/index.php?topic=5309923.0;all

When version 0.21.0 came out, it appears that there were incompatibility issues between TOR v2 and v3 addresses. Plenty of time has passed in the meantime, but it could be that nodes with older software versions are trying to connect to your TOR node and they can't because they don't recognize the v3 addresses.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
aar5ad (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 6


View Profile
June 03, 2022, 11:45:03 AM
 #3

I'm aware of the issue between v2 and v3 of Tor but its been quite a while since that change.  I would assume I would get at least 1 Peer.  I was just looking to support the btc network but not looking so likely at this point based on the # of replies.
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
June 03, 2022, 12:22:17 PM
 #4

You still participating in the network even with 10 outbound connections, it just does it in a limited way.

My experience with running node fully on Tor is that it always has few or zero inbound connections if I just barely create a new node. It started accepting incoming connections after some time, roughly 1 or 2 weeks in my case.

And if you have no reason for only accepting onion nodes, you can remove onlynet=onion, which will make a clearnet node that also runs Tor able to communicate with your nodes. It might help.


but if i run [getnetworkinfo] i show no local addresses
Did you mean that it did not show the output of "address": [...].onion?
aar5ad (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 6


View Profile
June 03, 2022, 03:39:16 PM
 #5

You still participating in the network even with 10 outbound connections, it just does it in a limited way.

My experience with running node fully on Tor is that it always has few or zero inbound connections if I just barely create a new node. It started accepting incoming connections after some time, roughly 1 or 2 weeks in my case.

And if you have no reason for only accepting onion nodes, you can remove onlynet=onion, which will make a clearnet node that also runs Tor able to communicate with your nodes. It might help.


but if i run [getnetworkinfo] i show no local addresses
Did you mean that it did not show the output of "address": [...].onion?

No real reason for [onlynet=onion] other than trying to increase anonymity.  ill try removing it.  Unfortunately i could not get port 8333 open with this node (windows); np with the former Redhat node.  I can try again.  It forwarded properly on my router but wont show as open on the btc node url test. Its been up and sync'd for about 3 weeks now so i would assume i should have some incoming.
With regards to output of addresses- no- did not show xxxxxxx.onion address; is blank so i believe without that, the node is unreachable to incoming peers.
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
June 03, 2022, 04:34:48 PM
Merited by ABCbits (1)
 #6

No real reason for [onlynet=onion] other than trying to increase anonymity.  ill try removing it.  Unfortunately i could not get port 8333 open with this node (windows);
As long as the proxy and bind configuration is still intact, your node still communicates over Tor. Removing the onlynet=onion will make your node accept connection from/to any network, but it is still through Tor since you have the mentioned configs.

With regards to output of addresses- no- did not show xxxxxxx.onion address; is blank so i believe without that, the node is unreachable to incoming peers.
I also guess it is likely the problem.

Just to make sure, did the debug.log show:
Code:
tor: Got service ID XXXXXXXXXXX, advertising service XXXXXXXXXXX.onion:8333
output?

And does the default bitcoin data folder, contain the "onion_private_key" file?

If there is none, I think the node couldn't automatically generate the Tor hidden service. Also, do you install/run Tor using the Windows Expert Bundle or not?


aar5ad (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 6


View Profile
June 03, 2022, 06:29:34 PM
 #7

No real reason for [onlynet=onion] other than trying to increase anonymity.  ill try removing it.  Unfortunately i could not get port 8333 open with this node (windows);
As long as the proxy and bind configuration is still intact, your node still communicates over Tor. Removing the onlynet=onion will make your node accept connection from/to any network, but it is still through Tor since you have the mentioned configs.

With regards to output of addresses- no- did not show xxxxxxx.onion address; is blank so i believe without that, the node is unreachable to incoming peers.
I also guess it is likely the problem.

Just to make sure, did the debug.log show:
Code:
tor: Got service ID XXXXXXXXXXX, advertising service XXXXXXXXXXX.onion:8333
output?

And does the default bitcoin data folder, contain the "onion_private_key" file?

If there is none, I think the node couldn't automatically generate the Tor hidden service. Also, do you install/run Tor using the Windows Expert Bundle or not?


Confirmed that tor: Got service ID XXXXXXXXXXX, advertising service XXXXXXXXXXX.onion:8333 is showing in debug.log file.  Address does not show on getnetworkinfo output.  onion_private_key is present in default data folder.  I may have discovered an (if not the) issue.  My router was blocking Tor traffic (security setting).  I set that to allow and now i have 17 incoming (IPv4) and showing up as "reachable" on test site.  Maybe that was the issue?  Should the getinfo output show my address?  Do i need to add my onion address to the .conf file? If yes- what is the format?  Thanks by the way the debug tip is useful, would not have found that otherwise.
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
June 03, 2022, 08:09:38 PM
 #8

My router was blocking Tor traffic (security setting).  I set that to allow and now i have 17 incoming (IPv4) and showing up as "reachable" on test site.  Maybe that was the issue?
 
I don't know. I'm not aware if there is such router that blocks Tor traffic.

Should the getinfo output show my address?
Yes, it should show your local address. It's weird that the debug tells Tor was working fine but the localaddresses output shows none. You might want to check $ bitcoin-cli -netinfo, I don't know for sure, but see if the onion address showing over there.

Do i need to add my onion address to the .conf file?
I don't think so. As long the node is working fine it should be good to go.
aar5ad (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 6


View Profile
June 03, 2022, 08:25:02 PM
 #9

Awesome thank you kindly.  Was reaching my tolerance limit on this issue.  Yes- my router is a higher end (enterprise) that get very granular with security options so i think that was the issue.  Or- my conf file didnt include my internal ip address (explicitly) as opposed to just the loopback.  Against my better judgement, i changed both (router and binding my internal ip in conf file).  Likely it was the explicit ip vs loopback.  Anyway- ill try the -cli to look for the the .onion address but somehow its working.  Is there a way that i can check external connectivity via .onion address vs ip?
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
June 04, 2022, 08:54:27 AM
 #10

Awesome thank you kindly.  Was reaching my tolerance limit on this issue.
You're welcome   Smiley

Is there a way that i can check external connectivity via .onion address vs ip?
The $ bitcoin-cli -netinfo command should give you that information.

Code: (bitcoin-cli -netinfo)
         ipv4    ipv6   onion   total   block
in          0       0       5       5
out         7       0       3      10       2
total       7       0       8      15
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!