Sign inSign up

m0thman/tor_haproxy

By m0thman

•Updated almost 6 years ago

Tor proxy roundrobin with dante-server and haproxy

Image
1

811

m0thman/tor_haproxy repository overview

⁠tor_haproxy

Tor proxy roundrobin with dante-server and haproxy

                           <===> Tor Proxy 1
dante-server <===> haproxy <===> Tor Proxy 2
                           <===> Tor Proxy N

⁠Environment Variables

  • INSTANCES - Amount of Tor proxy instances to run. Default 5
  • PORT - dante port to listen to. Default 9050
  • INTERFACE - dante interface to listen. Default eth0
  • PROXY_USER - Proxy username. Default robin
  • PASSWORD - Proxy password. Empty by default (anonymous access is allowed)
  • TOR_LOG_LEVEL - Log level for tor servers. Default warn
  • HAPROXY_TIMEOUT_CONNECT - Haproxy timeout connect option. Default 2000ms
  • HAPROXY_TIMEOUT_CLIENT - Haproxy timeout client option. Default 5000ms
  • HAPROXY_TIMEOUT_SERVER - Haproxy timeout server option. Default 5000ms
⁠Usage

All tor instances and dante-server will log to /logs directory in container.

docker run -d \
           --rm \
           --net=host \
           --name=tor-haproxy \
           -v "$(pwd)"/logs:/logs \
           -e INSTANCES=5 \
           -e PORT=9050 \
           -e INTERFACE=eth0 \
           -e PROXY_USER=robin \
           -e PASSWORD=StrongPassword \
           -e TOR_LOG_LEVEL=warn \
           -e HAPROXY_TIMEOUT_CONNECT=2000ms \
           -e HAPROXY_TIMEOUT_CLIENT=5000ms \
           -e HAPROXY_TIMEOUT_SERVER=5000ms \
           m0thman/tor_haproxy:latest

Tag summary

Content type

Image

Digest

Size

47.8 MB

Last updated

almost 6 years ago

docker pull m0thman/tor_haproxy