Skip to content

Tor hidden service "proxy" for Docker containers using docker-gen

License

Notifications You must be signed in to change notification settings

infiniteproject/torify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

torify

Tor hidden service "proxy" for Docker containers using docker-gen.

docker run -d \
    -v /var/run/docker.sock:/tmp/docker.sock:ro \
    -v ./torify:/var/lib/tor \
    infiniteproject/torify

Run container you want to create a hidden service for with -e TORIFY env variable:

docker run -d --name web -e TORIFY nginx

Get hostname:

cat ./torify/web/hostname

This is very basic and untested, feedback appreciated. Tor connects to target container's first exposed port, otherwise to port 80 unless specified with VIRTUAL_PORT env variable. Data is stored in /var/lib/tor/ so you can persist it with -v.

About

Tor hidden service "proxy" for Docker containers using docker-gen

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages