How to Create and Run a Docker Tor Bridge Image for Enhanced Privacy and Anonymity
Table of Contents
CREATE A TORRC.DEFAULT
File: /torrc.default
The only thing to change from the default torrc is the following line:
SocksPort 0.0.0.0:9050
BUILD THE DOCKER IMAGE
Run the following command to build the docker image.
docker build -t simeononsecurity/docker-tor-bridge .
RUN THE DOCKER CONTAINER
docker run -d \
--restart always \
-p 9050:9050 \
--name torproxy \
simeononsecurity/docker-tor-bridge:latest
TEST
Get your current ip
curl -L http://ifconfig.me
Get your ip through the tor socks proxy
curl --socks5 http://localhost:9050 -L http://ifconfig.me