Public | Automated Build

Last pushed: 2 years ago
Short Description
Minimalistic rotate tor docker image based on Alpine Linux (~27MB)
Full Description

docker-haproxy-tor

               Docker Container
               -------------------------------------
                       <-> Tor Proxy 1
Client <---->  HAproxy <-> Tor Proxy 2
                       <-> Tor Proxy n

Parents

Why: Lots of IP addresses. One single endpoint for your client.
Load-balancing by HAproxy.

Usage

# build docker container
docker build -t negash/docker-haproxy-tor:latest .

# ... or pull docker container
docker pull negash/docker-haproxy-tor:latest

# start docker container
docker run -d -p 5566:5566 -p 2090:2090 -e tors=25 negash/docker-haproxy-tor

# test with ...
curl --socks5 192.168.99.100:5566 http://echoip.com

# monitor 
# auth login:admin
# auth pass:admin
http://192.168.99.100:2090

# start docket container with new auth
docker run -d -p 5566:5566 -p 2090:2090 -e login=MySecureLogin -e pass=MySecurePassword negash/docker-haproxy-tor

Further Readings

Docker Pull Command
Owner
negash
Source Repository

Comments (1)
mpjhorner
3 months ago

Doesn't give me a response and errors eventually like this...

/usr/local/bin/start.rb:213:in `sleep': can't convert String into time interval (TypeError)
    from /usr/local/bin/start.rb:213:in `block (2 levels) in <main>'
    from /usr/local/bin/start.rb:209:in `each'
    from /usr/local/bin/start.rb:209:in `block in <main>'
    from /usr/local/bin/start.rb:207:in `loop'
    from /usr/local/bin/start.rb:207:in `<main>'
D, [2017-05-31T02:08:19.287940 #5] DEBUG -- : running: /usr/bin/tor --SocksPort 10000 --NewCircuitPeriod 120 --DataDirectory /var/lib/tor/10000 --PidFile /var/run/tor/10000.pid --Log "warn syslog" --RunAsDaemon 1 | logger -t 'tor' 2>&1
I, [2017-05-31T02:08:19.288987 #5]  INFO -- : sleeping for 25 seconds