File: /torrc.default
The only thing to change from the default torrc is the following line:
SocksPort 0.0.0.0:9050
Run the following command to build the docker image.
docker build -t simeononsecurity/docker-tor-bridge .
docker run -d \
--restart always \
-p 9050:9050 \
--name torproxy \
simeononsecurity/docker-tor-bridge:latest
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