docker-bitcoind icon indicating copy to clipboard operation
docker-bitcoind copied to clipboard

Feature Request: Be able to connect only through TOR

Open olwe1 opened this issue 1 year ago • 3 comments

It would be really nice to be able to activate TOR traffic only on bitcoin.conf and the container to have the dependencies pre-installed and ready to route all the traffic through TOR.

olwe1 avatar Aug 31 '24 18:08 olwe1

You can already control this through bitcoin.conf

nolim1t avatar Sep 02 '24 03:09 nolim1t

I just tried to add a simple tor routing to bitcoin.conf but there is no tor dependency installed inside the container.

proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1

The idea would be to have a tor only node.

olwe1 avatar Sep 13 '24 09:09 olwe1

@olwe1 , you can't "mix" things... if you want to use TOR, you have to use another container.

Include this into your docker-compose.yaml file:

tor: container_name: tor image: lncm/tor user: toruser restart: unless-stopped healthcheck: test: ["CMD-SHELL","tor-resolve www.tor.org 10.21.21.11:9050"] interval: 1m timeout: 15s retries: 5 volumes: - /data/tor/torrc:/etc/tor/torrc - /data/tor/data:/var/lib/tor/ - /data/tor/run:/var/run/tor/ ports: - "9050:9050" - "127.0.0.1:9051:9051" networks: default: ipv4_address: 10.21.21.11

Goro2030 avatar Jun 15 '25 16:06 Goro2030