Docker Tor+Proxy

Run tor and proxy server in docker and set Chrome browser to send all traffics to docker tor proxy server

Environment:

Step 1: Create docker-compose-tor.xml

version: '2'
services:
  torproxy:
    image: jess/tor-proxy
    expose:
      - "9050"
    restart: "always"
  privoxy:
    image: jess/privoxy
    links:
      - torproxy
    ports:
      - "8118:8118"
    expose:
      - "8118"
    restart: "always"

Step 2: Run Docker Quickstart Terminal

Step 3: Run docker-compose

# docker-compose -f docker-compose-tor.yml run -d

Step 4: Get docker machine IP

# docker-machine ip

docker-tor-proxy-1

Step 5: Open Chrome browser and install Proxy Helper extension
https://chrome.google.com/webstore/detail/proxy-helper/mnloefcpaepkpmhaoipjkpikbnkmbnic?utm_source=chrome-app-launcher-info-dialog

Note: can use system proxy configuration if want or other proxy helper extensions. I use Proxy Helper extension to set proxy server only for the Chrome browser.

Step 6: Set Proxy Servers into the Proxy Helper extension
192.168.99.100:8118

docker-tor-proxy-3

Step 7: Test connection
https://whatismyipaddress.com/

docker-tor-proxy-2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.