Docker Container
--------------------------
<-> Tor Proxy 1
Client <----> HAproxy <-> Tor Proxy 2
<-> Tor Proxy n
Why: Lots of IP addresses. One single endpoint for your client. Load-balancing by HAproxy.
# build docker container
docker build -t shaddysignal/tor-rotating-proxy:latest .
# ... or pull docker container
docker pull shaddysignal/tor-rotating-proxy:latest
# start docker container
docker run -d -p 9050:9050 -p 4444:4444 --env tors=8 shaddysignal/tor-rotating-proxy # default tors=10
# test with ...
curl -x socks5://127.0.0.1:9050 http://checkip.dyndns.org/
# monitor
http://127.0.0.1:4444/haproxy?stats
Thanks to mattes/rotating-proxy. Although it is a fork, so its obvious.