Giter VIP home page Giter VIP logo

Comments (5)

realSConway avatar realSConway commented on June 9, 2024 1

I have it working!

tor container is running like:

podman run --detach \
--name tor-socks-proxy \
--publish 8333:8333 \
--publish 127.0.0.1:9150:9150/tcp \
 peterdavehello/tor-socks-proxy:latest

Then connect bitcoin-node with tor-socks-proxy network container

podman run --rm --interactive --tty  \
--name bitcoind-node \
--volume bitcoin-data:/home/bitcoin/.bitcoin \
--network container:tor-socks-proxy \
ruimarinho/bitcoin-core  

In bitcoin.conf set proxy to ipaddress:port of tor-socks-proxy

proxy=10.88.0.2:9150

from docker-bitcoind.

laverdet avatar laverdet commented on June 9, 2024

You can edit bitcoin.conf in the /bitcoin/.bitcoin volume. You would add proxy=... and maybe listenonion=0 if you don't want to publish a hidden service.

from docker-bitcoind.

realSConway avatar realSConway commented on June 9, 2024

I want to route bitcoin only through tor, using peterdavehello/tor-socks-proxy container as tor proxy.

I first run tor container

podman run --detach \
--name tor-socks-proxy \
--publish 127.0.0.1:9150:9150/tcp \
peterdavehello/tor-socks-proxy:latest

Then run bitcoin with:

podman run --rm --detach --tty --interactive \
--name bitcoin \
--network container:tor-socks-proxy \
--env http_proxy=socks5://127.0.0.1:9150 \
--env HTTPS_PROXY=socks5h://127.0.0.1:9150 \
kylemanna/bitcoind:latest

In my bitcoin.conf, I use tor settings.

proxy=10.88.2.2:9150 #ip address of tor-socks-proxy
listen=1
bind=127.0.0.1
onlynet=onion

Should bind also be ip from tor-socks-proxy?

from docker-bitcoind.

MarcelRobitaille avatar MarcelRobitaille commented on June 9, 2024

Thanks @realSConway

For those who prefer docker-compose:

version: "3"

services:
  bitcoind:
    image: kylemanna/bitcoind:latest
    container_name: bitcoind
    restart: always
    volumes:
      - /media/bitcoin:/bitcoin/.bitcoin
    network_mode: service:tor
  tor:
    image: peterdavehello/tor-socks-proxy:latest
    container_name: tor-socks-proxy
    ports:
      - "8118:8118"
      - "127.0.0.1:8332:8332"
      - "127.0.0.1:9150:9150/tcp"

from docker-bitcoind.

dev7ba avatar dev7ba commented on June 9, 2024

Thanks @MarcelRobitaille and @realSConway but you can't publish a hidden service this way. I'll try to make a pullrequest by running tor within the same container.

from docker-bitcoind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.