Bitcoin Forum
July 05, 2024, 03:17:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] Run bitcoind full node behind tor WITH incoming connections!  (Read 1379 times)
d4n13 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
June 24, 2015, 03:52:00 AM
Last edit: July 14, 2015, 08:56:15 PM by d4n13
 #1

I'd like to run a full node, but run it over TOR.  The caveat is that I'd like to contribute by accepting incoming connections.  I would think that this would be straight forward enough.  Just provide a switch similar to "-externalip=" but for your hidden service hash, like "-onionaddr=eqt5g4fuenphqinx.onioin".  That way a node could publish it's onion address to accept incoming connections over TOR.  Of course the node would need to set up the hidden service on the proper port, but this would allow bitcoind to plug into it.

Surely someone has proposed this before... is it already implemented?  Is there a way to do both incoming and outgoing connections through bitcoind over TOR?

Thx

d4n13 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
June 24, 2015, 06:14:15 AM
 #2

I was thinking, it would be nice if the options worked something like this:

Connection options:
  -addnode=<ip|onion>    Add a node to connect to and attempt to keep the connection open
  -connect=<ip|onion>    Connect only to the specified node(s)
  -external=<ip|onion>   Specify your own public address
  -onion=<ip:port>       Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)

The idea would be this... if the "-onion" switch is present, then all the other IP based switches could use addresses like "eqt5g4fuenphqinx.onioin" in their peer list while also allowing peers to connect to their onion address.

Maybe the code is already written to work exactly that way, it just isn't in the documentation.

Any thoughts?

d4n13 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
June 24, 2015, 07:53:14 AM
 #3

Maybe the code is already written to work exactly that way, it just isn't in the documentation.
http://lmgtfy.com/?q=how+to+set+up+bitcoin+as+a+hidden+service+ubuntu

Now I just feel silly

Answer:
https://www.sky-ip.org/configure-bitcoin-node-debian-ubuntu.html

d4n13 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
June 25, 2015, 05:30:23 AM
 #4

File torrc
Code:
SocksPort 127.0.0.1:9150
DataDirectory Z:\Redacted\Tor
GeoIPFile Z:\Redacted\Tor\geoip
GeoIPv6File Z:\Redacted\Tor\geoip6
HiddenServiceDir Z:\Redacted\Tor\bitcoin-service
HiddenServicePort 8333 127.0.0.1:8333
File bitcoin.conf
Code:
externalip=redactedredacted.onion
port=8333
onlynet=onion
listen=1
bind=127.0.0.1:8333
onion=127.0.0.1:9150

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!