Skip to content

kleo/docker-multitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

docker-multitor

This is an Alpine Docker image that runs multitor. Multitor creates a Proxy with multiple TOR instances wich are load-balanced. For detailed information about multitor, check out https://github.com/trimstray/multitor .

Build

git clone https://github.com/kleo/docker-multitor

cd docker-multitor

docker build -t multitor .

Quick Start

# By default, the container runs with 5 Tor instances, HAProxy (frontend) and Privoxy (broker), which implicate the load balancer. The proxy is set up with port 16379 and the container will be removed after use.

docker pull ghcr.io/kleo/multitor:latest

docker run -it --rm -p 16379:16379 ghcr.io/kleo/multitor:latest

# Start detached
docker run -d -it --rm -p 16379:16379 ghcr.io/kleo/multitor:latest

# Stop container
docker stop <container id>

# Start 20 tor instances
docker run -it --rm -e "TOR_INSTANCES=20" -p 16379:16379 ghcr.io/kleo/multitor:latest

# Check multitor
for i in $(seq 1 4) ; do printf "req %2d: " "$i" ; curl -k --location --proxy 127.0.0.1:16379 https://httpbin.org/ip ; done

Advance

You can also start the container interactively

# run interactive
docker run -it --rm -p 16379:16379 ghcr.io/kleo/multitor:latest /bin/bash
# start multitor inside the container
multitor --init 5 --user root --socks-port 9000 --control-port 9900 --proxy privoxy --haproxy

For detailed information on how multitor works and what options it provides, check out the multitor wiki https://github.com/trimstray/multitor/wiki/Manual

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 81.0%
  • Shell 19.0%