GithubHelp home page GithubHelp logo

gotorweb's Introduction

GoTorWeb

This project as has the objective of providing an easy and automatic way of eposing your containers to the Tor network.

Running GoTorWeb

docker run --rm --name gtw  \
    -v /var/run/docker.sock:/var/run/docker.sock  \
    -e "GTW-USERNAME=<auth user>" \
    -e "GTW-PASSWORD=<auth password>" \
    -v <config location>:/config knoker/go_tor_web

Runtime Parameters

  • GTW-USERNAME: web ui username
  • GTW-PASSWORD: web ui password
  • config location: location of the tor generated certificates and hostnames

Finding the web ui

After tor has initialized there will be a file config/local/hostname containning the web ui address, and the following log will appear in the container stdout

------------------------------------
Local: something.onion 80
------------------------------------

Other containers

docker run --rm -it \
    -l "GTW=1" \
    -l "GWT-PORT=8080" \
    -l "GWT-PORT-FW=80"  \
    hashicorp/http-echo -listen=:8080 -text="hello world"

Other containers parameters

  • -l "GTW=1": GoTorWeb enabled

  • -l "GWT-PORT=8080": Internal container port

  • -l "GWT-PORT-FW=80": Tor exposed port

TODO

  • Improve the web ui's current "design"

  • Improve the name discovery routine to run only when a new container is launched and until it's name is discovered

  • Allow disabling the web ui


Feedback and pull requests are apreciated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.