Docker Tor Hidden Service Proxy
Create simple darknet proxy to clearnet website using Docker container.
See example on boruta.info. Proxy request is sending additional header x-tor, which allows you to recognize the tor domain.
-
Clone repository:
git clone git@github.com:borutainfo/DockerTorHiddenServiceProxy.git
-
Edit
tor/proxy.confand change{YOUR_DOMAIN}to clearnet domain you want to create proxy. -
Edit
docker-compose.ymland change{YOUR_DOMAIN_PRIVATE_KEY}to hidden service domain private key.If you do not have domain already generated you can comment out line in Dockerfile:
RUN echo "${PRIVATE_KEY}" > /var/lib/tor/proxy/private_key
Domain will be generated automatically. You can read the hostname after docker-compose up, by command:
docker exec dockertorhiddenserviceproxy_tor-server_1 cat /var/lib/tor/proxy/hostname -
Run docker-compose:
docker-compose up -d