Bitcoin Forum
May 04, 2024, 11:11:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core and Tor  (Read 91 times)
defa1 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 67


View Profile
February 06, 2021, 05:10:36 PM
Merited by Jet Cash (2), ABCbits (1)
 #1

I'm running Core 0.21.0 on Ubuntu 20.04 with Tor running in the background as a service. I'm interested in running Core over Tor, but I'm confused by the options offered to me in the GUI under Options > Network.

Could someone explain to me the difference between these 2 options:

- Connect through SOCKS5 proxy (default proxy)
- Use seperate SOCKS5 proxy to reach peers via Tor onion services

In case it matters, I do not allow incoming connections.
1714864269
Hero Member
*
Offline Offline

Posts: 1714864269

View Profile Personal Message (Offline)

Ignore
1714864269
Reply with quote  #2

1714864269
Report to moderator
1714864269
Hero Member
*
Offline Offline

Posts: 1714864269

View Profile Personal Message (Offline)

Ignore
1714864269
Reply with quote  #2

1714864269
Report to moderator
1714864269
Hero Member
*
Offline Offline

Posts: 1714864269

View Profile Personal Message (Offline)

Ignore
1714864269
Reply with quote  #2

1714864269
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714864269
Hero Member
*
Offline Offline

Posts: 1714864269

View Profile Personal Message (Offline)

Ignore
1714864269
Reply with quote  #2

1714864269
Report to moderator
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 06, 2021, 05:46:31 PM
Merited by HeRetiK (1), ABCbits (1)
 #2

The first one routes all of your Bitcoin Core traffic through a Tor proxy including traffic being sent to nodes listening with .onion urls.

The second one uses a separate proxy just for accessing onion URLs, and makes a direct connection with everything else such as IP addresses for clearnet nodes and DNS requests for peer lists.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
defa1 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 67


View Profile
February 07, 2021, 02:12:43 PM
 #3

There is something that I'm missing because I don't understand what you mean with "nodes listening with .onion urls"

By checking the first option I can route everything through Tor. Will I then connect to both nodes on the clearnet and nodes running only as a hidden service?

Or do I need to check the second option to connect to nodes that are running as a hidden service?

Is there a benefit of checking both options?
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 07, 2021, 06:38:25 PM
 #4

There is something that I'm missing because I don't understand what you mean with "nodes listening with .onion urls"

A node can set a configuration option to bind to a .onion address such as x83jdie73d.onion (which is not real but you get the idea) the same way that programs bind to IP addresses. That means those services become accessible by sending and receiving data from that address.

This allows a node to become accessible to all via its IP address, and also it's onion address on Tor.

By checking the first option I can route everything through Tor. Will I then connect to both nodes on the clearnet and nodes running only as a hidden service?

Yes.

Or do I need to check the second option to connect to nodes that are running as a hidden service?

Is there a benefit of checking both options?

As far as I know, no. The first option of routing everything through Tor implies the second option. Because the second option mainly exists so that you don't have download all block and transaction data from nodes on the clearnet using Tor, while simultaneously being able to download from nodes that are only accessible via Tor.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
February 08, 2021, 01:24:12 PM
 #5

Or do I need to check the second option to connect to nodes that are running as a hidden service?

Is there a benefit of checking both options?

As far as I know, no. The first option of routing everything through Tor implies the second option. Because the second option mainly exists so that you don't have download all block and transaction data from nodes on the clearnet using Tor, while simultaneously being able to download from nodes that are only accessible via Tor.

in the past (several years back), there was a bug in Bitcoin Core related to the Socks5 proxy options... I forget the details, but using the "separate socks proxy for Tor connections" was causing a problem IIRC

if you're only connecting via Tor, then using the separate Tor-only socks proxy isn't necessary, you can set only the socks proxy and it will work fine. The separate socks proxy for Tor-only is only necessary if you are running 2 proxies simultaneously, one for for Tor and another for a proxy to some other alternate network routing. I expect most people are only using a Tor proxy as their alternate (or only) network, so the second Tor-only setting is not needed.

In future (i.e. probably Bitcoin 22.0), using both proxy settings may become more common, as I2P support is coming in that release. I think the CJDNS protocol is already supported in 0.21.0, as all it requires is already in the new address format that comes with Bitcoin 0.21.0, not 100% sure on that however

Vires in numeris
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!