Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: doobadoo on June 18, 2012, 01:31:43 PM



Title: Bitcoin and TOR
Post by: doobadoo on June 18, 2012, 01:31:43 PM
I tried running Bitcoin over TOR.  I also took a look at my net traffic with a snooping app.  What i see is a lot of traffic that gets routed over TOR, most likely the p2p stuff including the txs.  However, according to the snitch app and my TOR logs, Bitcoin makes some clearnet connections.  Probably related to peer discovery...  Here is what i pull from Vidalia's messages:

[Mon Jun 18 XXXX 2012] Potentially Dangerous Connection! - One of your applications established a connection through Tor to "98.151.200.160:8333" using a protocol that may leak information about your destination. Please ensure you configure your applications to use only SOCKS4a or SOCKS5 with remote hostname resolution.

My guess is that there is some kind of dns lookup its doing, again probably for peer discovery.

My question is:  has TOR usage been fully implemented.  In the event that some government tries to firewall or block out BTC, TOR may be the only way folks in an affected jurisdiction may be able to access the network. 

Just curious as to whether or not this is the case.

-doob


Title: Re: Bitcoin and TOR
Post by: kokjo on June 18, 2012, 01:37:05 PM
peer discovery is done by dns seeds. if you want to disable peer discovery use -addnode to bitcoind.

the warning will still show in tor, because bitcoin don't connect to dns addresses but "raw" ips, and therefor does not happen a dns lookup when connecting to a new peer found in the network. but when you pass an ip to tor, tor assumes that the application using it, does dns lookup besides tor, and spews a warning.


Title: Re: Bitcoin and TOR
Post by: Pieter Wuille on June 18, 2012, 03:49:02 PM
We're very close to adding much improved Tor support to Bitcoin, so it will most likely be in 0.7.0.

Among other things:
  • Support for running as and connecting to Bitcoin hidden services
  • Peer exchange of Bitcoin hidden services
  • Non-leaking DNS seeding via proxy


Title: Re: Bitcoin and TOR
Post by: byronbb on June 20, 2012, 04:25:35 PM
I tried to run the client over tor for a while but my connections were very low and eventually reduced to 1 or 2.


Title: Re: Bitcoin and TOR
Post by: stepkrav on September 03, 2012, 01:12:31 PM
We're very close to adding much improved Tor support to Bitcoin, so it will most likely be in 0.7.0.

Among other things:
  • Support for running as and connecting to Bitcoin hidden services
  • Peer exchange of Bitcoin hidden services
  • Non-leaking DNS seeding via proxy


thanks for this.
Anyway, i've just tried bitcoin over Tor and works pretty well.


Title: Re: Bitcoin and TOR
Post by: ErebusBat on September 03, 2012, 02:19:07 PM
We're very close to adding much improved Tor support to Bitcoin, so it will most likely be in 0.7.0.

Among other things:
  • Support for running as and connecting to Bitcoin hidden services
  • Peer exchange of Bitcoin hidden services
  • Non-leaking DNS seeding via proxy


thanks for this.
Anyway, i've just tried bitcoin over Tor and works pretty well.
Is there a guide for this?


Title: Re: Bitcoin and TOR
Post by: Pieter Wuille on September 03, 2012, 03:07:59 PM
Is there a guide for this?

doc/Tor.txt (https://github.com/bitcoin/bitcoin/blob/master/doc/Tor.txt) in the source tree


Title: Re: Bitcoin and TOR
Post by: ErebusBat on September 04, 2012, 01:24:57 AM
Is there a guide for this?

doc/Tor.txt (https://github.com/bitcoin/bitcoin/blob/master/doc/Tor.txt) in the source tree
Very interesting, thank you!


Title: Re: Bitcoin and TOR
Post by: justusranvier on September 04, 2012, 03:08:26 AM
If anyone wants to test their ability to connect to a hidden service they can use this one: cciyjmmmmbg2mri3.onion