Bitcoin Forum
May 13, 2024, 05:08:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Tor Support via Onion cat (onion in IPv6)  (Read 1879 times)
gmaxwell (OP)
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8420



View Profile WWW
June 21, 2011, 04:24:00 AM
 #1


Today the bitcoin client can work over Tor, but it can't connect to nodes which exist exclusively in the Tor cloud except manually. When using tor your node will just connect to regular internet nodes via tor.

This means, e.g. that while running bitcoin over tor can protect your privacy it doesn't help secure bitcoin against ddos and internet filtering attacks, because tor hidden nodes can't play much of a role.

To fix this bitcoin would need to know how to connect to onion addresses and how to share them with other nodes.

Fortunately this can be done without changing the bitcoin p2p protocol.  Bitcoin already shares addresses in IPv6 form. Fortunately the onion address space is already 80 bits and there is already a widely used mapping of onion to IPv6 called onioncat: http://www.cypherpunk.at/onioncat/wiki/OnionCat

To support this bitcoin would need to know to pack and unpack onion hostnames to onioncat IPv6 addresses, and would need to know to only attempt to connect to them via the tor-socks-proxy.  It would also be useful for it to know how to have a tor-proxy used only for onion while the rest of the connections use the public internet.

Is there any reason that this wouldn't be a good way of handling this?
1715620128
Hero Member
*
Offline Offline

Posts: 1715620128

View Profile Personal Message (Offline)

Ignore
1715620128
Reply with quote  #2

1715620128
Report to moderator
1715620128
Hero Member
*
Offline Offline

Posts: 1715620128

View Profile Personal Message (Offline)

Ignore
1715620128
Reply with quote  #2

1715620128
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715620128
Hero Member
*
Offline Offline

Posts: 1715620128

View Profile Personal Message (Offline)

Ignore
1715620128
Reply with quote  #2

1715620128
Report to moderator
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 812
Merit: 1022

No Maps for These Territories


View Profile
June 21, 2011, 05:52:49 AM
 #2

Sounds good. This has bothered me as well. By default, it only uses tor to connect via an exit node to other bitcoin clients. It should prefer connecting to hidden services inside the Tor network (and open up itself as hidden service, if the user chooses so).

However, wouldn't this require IPv6 support in the client? This still needs to be implemented.


Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
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!