Skip to content

(PoC) Run minimalist containers (6 Mb) to connect with the Tor network with multiple circuits on different local ports

Notifications You must be signed in to change notification settings

lethak-docker/tor-clients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

tor-clients

Inspired by https://github.com/osminogin/docker-tor-simple

Run minimalist containers to connect with the Tor network with multiple circuits on different local ports

Manual run (optional)

@see https://docs.docker.com/engine/reference/commandline/run/

docker run --rm --name tor1 --publish "127.0.0.1:11050:9050" "lethak/tor-clients:latest"
docker run --rm --name tor2 --publish "127.0.0.1:11052:9050" "lethak/tor-clients:latest"
docker run --rm --name tor3 --publish "127.0.0.1:11054:9050" "lethak/tor-clients:latest"
docker run --rm --name tor4 --publish "127.0.0.1:11056:9050" "lethak/tor-clients:latest"

The last example binds port 9050 of the container to TCP port 11056 on 127.0.0.1 of the host machine. You can also specify udp and tcp ports like 127.0.0.1:11056:9050/tcp.

Docker compose (optional)

Start detached:

cd compose && docker-compose up -d && cd ..

Down containers:

cd compose && docker-compose down && cd ..

Check your Tor IPs

From the host machine: replace 11050 with the desired published port from your Tor containers

curl --socks5 127.0.0.1:11050 http://checkip.amazonaws.com
curl --socks5 127.0.0.1:11052 http://checkip.amazonaws.com
curl --socks5 127.0.0.1:11054 http://checkip.amazonaws.com
curl --socks5 127.0.0.1:11056 http://checkip.amazonaws.com

Docker image build commands (for contributor)

To build a docker image

docker build ./images/tor-client -t lethak/tor-clients:latest

To push a new tag to this repository (requiring login):

docker login
docker push lethak/tor-clients:latest

Resources

About

(PoC) Run minimalist containers (6 Mb) to connect with the Tor network with multiple circuits on different local ports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published