Comments (5)
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.
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.
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.
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.
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)
- local electrs while proxying bitcoind traffic through tor
- Does this support zeromq? HOT 7
- Tag images based on bitcoincore version HOT 1
- `btc_init` fails with `Permission denied` on `bitcoin.conf` creation HOT 1
- Kubernetes/Docker - GPU HOT 1
- Documentation does not point to the correct volume path HOT 2
- Node upgrade/reboot sync taking too much time to boot HOT 1
- Where is data stored? HOT 2
- Launch options for Testnet HOT 1
- Docker images for ARM HOT 2
- container exits immediately HOT 2
- Use environment variables AND config
- version 22.0 HOT 5
- "docs folder" link in Docker Hub Is Broken HOT 2
- Release management proposal HOT 3
- Bitcoin core 22 HOT 1
- ERROR: AcceptBlock - 100% sync Full node HOT 1
- Choose What Type of Node to Run HOT 1
- Bitcoin Node running into errors HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-bitcoind.