Sign inSign up

marcelmaatkamp/tor-authenticated-hidden-service

By marcelmaatkamp

Updated over 8 years ago

Create a tor hidden service with client authorization enabled (see HiddenServiceAuthorizeClient).

Image
2

618

marcelmaatkamp/tor-authenticated-hidden-service repository overview

Docker Tor Hidden Service with Client Authorization.

Added functionality from https://github.com/cmehay/docker-tor-hidden-service to create a tor hidden service with client authorization enabled (see HiddenServiceAuthorizeClient in the tor manual).

Setup

Create a docker-compose.yml with the services. In this case a hello-service and a hidden-service which makes hello container a hidden service:

version: '2'
services:

 hello:
  image: "tutum/hello-world"
  hostname: "hello"

 tor:
  image: marcelmaatkamp/tor-authenticated-hidden-service
  links:
   - "hello"
  environment:
   HELLO_PORTS: "80:80"
   HELLO_AUTH: "0123456789"
  volumes:
   - "tor:/var/lib/tor/hidden_service"

volumes:
 tor: 

The key to add to your torrc file in the tor browser can be extracted from the logfile when the hidden service starts:

tor_1    | Entrypoint INFO     hello: uifjb4bmt2ilpa2v.onion T3GgNOwr5ML5s5FGZsJ/CR # client: 0123456789:80
tor_1    | Dec 01 14:36:51.682 [notice] Tor 0.2.9.5-alpha (git-330846ac087f7b32) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2j and Zlib 1.2.8.
tor_1    | Dec 01 14:36:51.682 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
tor_1    | Dec 01 14:36:51.682 [notice] This version is not a stable Tor release. Expect more bugs than usual.
tor_1    | Dec 01 14:36:51.682 [notice] Read configuration file "/etc/tor/torrc".
tor_1    | Dec 01 14:36:51.000 [notice] Parsing GEOIP IPv4 file /usr/local/share/tor/geoip.
tor_1    | Dec 01 14:36:51.000 [notice] Parsing GEOIP IPv6 file /usr/local/share/tor/geoip6.
tor_1    | Dec 01 14:36:51.000 [notice] Bootstrapped 0%: Starting
tor_1    | Dec 01 14:36:52.000 [notice] Bootstrapped 80%: Connecting to the Tor network
tor_1    | Dec 01 14:36:52.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
tor_1    | Dec 01 14:36:53.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
tor_1    | Dec 01 14:36:53.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
tor_1    | Dec 01 14:36:53.000 [notice] Bootstrapped 100%: Done

Add it to the torrc file. On a Mac in the Tor Browser this file can be found in /Applications/TorBrowser.app/Contents/Resources/TorBrowser/Tor/torrc-defaults or ~/Library/Application Support/TorBrowser-Data/torrc

...
HidServAuth uifjb4bmt2ilpa2v.onion T3GgNOwr5ML5s5FGZsJ/CR hello

Restart the Tor Browser and go to http://uifjb4bmt2ilpa2v.onion

See https://github.com/cmehay/docker-tor-hidden-service for more information about this container.

Tag summary

Content type

Image

Digest

Size

39.4 MB

Last updated

over 8 years ago

docker pull marcelmaatkamp/tor-authenticated-hidden-service