All Projects → opsxcq → Docker Tor Hiddenservice Nginx

opsxcq / Docker Tor Hiddenservice Nginx

Licence: gpl-3.0
Easily setup a hidden service inside the Tor network

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Docker Tor Hiddenservice Nginx

Online Privacy Test Resource List
Privacy Online Test and Resource Compendium (POTARC) 🕵🏻
Stars: ✭ 185 (+27.59%)
Mutual labels:  tor, tor-network, privacy
Onionbrowser
An open-source, privacy-enhancing web browser for iOS, utilizing the Tor anonymity network
Stars: ✭ 1,702 (+1073.79%)
Mutual labels:  tor, tor-network, privacy
Torwall
Tallow - Transparent Tor for Windows
Stars: ✭ 346 (+138.62%)
Mutual labels:  tor, tor-network, privacy
Hiddenvm
HiddenVM — Use any desktop OS without leaving a trace.
Stars: ✭ 1,183 (+715.86%)
Mutual labels:  tor, privacy
Onionite
Explore the Tor network
Stars: ✭ 63 (-56.55%)
Mutual labels:  tor, tor-network
Tor Router
A SOCKS, HTTP and DNS proxy for distributing traffic across multiple instances of Tor
Stars: ✭ 69 (-52.41%)
Mutual labels:  tor, tor-network
Sybilhunter
Hunting for Sybils and anomalies in archived Tor network data.
Stars: ✭ 35 (-75.86%)
Mutual labels:  tor, tor-network
Poopak
POOPAK - TOR Hidden Service Crawler
Stars: ✭ 78 (-46.21%)
Mutual labels:  tor, tor-network
Walletwasabi
Open-source, non-custodial, privacy focused Bitcoin wallet for Windows, Linux, and Mac. Built-in Tor, CoinJoin, and coin control features.
Stars: ✭ 1,197 (+725.52%)
Mutual labels:  tor, privacy
Wahay
an easy-to-use, secure and decentralized conference call application (this repository is a mirror of an internal work repository)
Stars: ✭ 79 (-45.52%)
Mutual labels:  tor, privacy
Archtorify
Transparent proxy through Tor for Arch Linux OS
Stars: ✭ 100 (-31.03%)
Mutual labels:  tor, privacy
Nowallet
This project is a secure Bitcoin brainwallet app written in Python.
Stars: ✭ 52 (-64.14%)
Mutual labels:  tor, privacy
Nipe
An engine to make Tor network your default gateway
Stars: ✭ 1,032 (+611.72%)
Mutual labels:  tor, privacy
Ffck
🦊 & 🧅 hardening
Stars: ✭ 72 (-50.34%)
Mutual labels:  tor, privacy
Deepweb Scappering
Discover hidden deepweb pages
Stars: ✭ 40 (-72.41%)
Mutual labels:  tor, tor-network
Tortipi
Tor based Raspberry π hotspot
Stars: ✭ 76 (-47.59%)
Mutual labels:  tor, tor-network
Onionr
Private Decentralized Communication Network 🎭 🧅
Stars: ✭ 84 (-42.07%)
Mutual labels:  tor, privacy
Torpy
Pure python Tor client implementation
Stars: ✭ 104 (-28.28%)
Mutual labels:  tor, tor-network
Prometheus Tor exporter
Prometheus exporter for the TOR daemon
Stars: ✭ 20 (-86.21%)
Mutual labels:  tor, tor-network
Scihub Downloader
Sci-Hub PDF downloader through Tor Network (Docker image)
Stars: ✭ 35 (-75.86%)
Mutual labels:  tor, tor-network

Easily create and run hidden services

Docker Pulls License

Easily run a hidden service inside the Tor network with this container

Generate the skeleton configuration for you hidden service, replace for your hidden service pattern name. Example, if you want to your hidden service contain the word 'boss', just use this word as argument. You can use regular expressions, like ^boss, will generate an address wich will start with 'boss'. Be aware that bigger the pattern, more time it will take to generate it.

docker run -it --rm -v $(pwd)/web:/web \
       strm/tor-hiddenservice-nginx generate <pattern>

Create an container named 'hiddensite' to serve your generated hidden service

docker run -d --restart=always --name hiddensite -v $(pwd)/web:/web \
       strm/tor-hiddenservice-nginx 

Example

Let's create a hidden service with the name beginning with strm.

docker pull strm/tor-hiddenservice-nginx

Wait to the container image be downloaded. And them we can generate our site skeleton:

$docker run -it --rm -v $(pwd)/web:/web strm/tor-hiddenservice-nginx generate ^strm
[+] Generating the address with mask: ^strm
[+] Found matching domain after 137072 tries: strmfyygjp5st54g.onion
[+] Generating nginx configuration for site  strmfyygjp5st54g.onion
[+] Creating www folder
[+] Generating index.html template

Now we have our skeleton generated, we can run the container with:

docker run -d --restart=always --name hiddensite \
       -v $(pwd)/web:/web strm/tor-hiddenservice-nginx

And you have the service running ! :)

print

Troubleshoot

  • 403 error on nginx, check your directory permissions and folder permissions. Nginx run as "hidden" user, his UID is 666, just check if you give this user access to the /web/www folder (in the case the folder mapped to it).

FAQ

Anti-Pattern

While is not a good thing to run everything in one container, this is a easy way to get started if you don't have that much experience with docker and hidden services. If you want to use something more elaborated, check this repository.

Here is an example of how a deploy using this other image looks like.

version: '3'

services:
  tor:
    image: strm/tor
    restart: always
    depends_on:
      - backend
    environment:
        LISTEN_PORT: "80"
        REDIRECT: "backend:80"
        PRIVATE_KEY: |
          -----BEGIN RSA PRIVATE KEY-----
          MIICXQIBAAKBgQDSqBzjGxL+UFdrFJSdc+LJn3RrXiaZ7k6kgSw8KqOCSRgIr2qO
          XZrCa3YHE+PqsfbDVF0GO0Xy3A9fsIxRFMUo3K++3BaVJslUbqK2TH9fJt5Ji1b6
          N5UzXsEzf73atXwMF63hgVFZFLhfSWH8jGE1svwDXn0YQWP88PVX34SrWQIDASsd
          AoGAUWdd+/m9TrTQyqK0IbzIr0fYQ5gDq4mv1GLEYjR4SWF8pSCxL1yOBsmQ02sj
          BSS2Vw4dpFfloCrRw2ipM8ac4kdLGCoYefQHwW2Kfdf9raVfPDP7vcxrs37sOgOh
          2rSXCOOrmcoMrEka2/OTGW15jaNUEEoWacS3YL1Fj0Bi6g0CQQD4ZmBiF6qu2XnT
          8lMr1Asdz3K8fYiyfl6CzHItUubAbQ8ipv12q8CerJqk3dO98V+w8llAsQ7BT5wq
          8AZOPQR3AkEA2RobnACDvb2Jw+dYSFsqrHyIDojKsrNiDEFedkiFijRFqme+nrif
          kJ4yTnSiphC+rSSBbvYMawsqiWBA7UPSrwJBAKXSVQClxNUpJ2PZt91HZAtuipRt
          t8suGIY4mot1iDRN0XdiNN8TNZ3qLag7wUU4or+Yn/3Xae1euHpyftTxmYsCQQCd
          oJxsGotYx62ULxPqz0um7yEWOU6hUAy8MB3X3FcTCjGO0PPKpfJ2ntXo0Ajcp5ci
          msi81/e9DTnF9mPjtsY9AkAUG6heBlETMFzyka9FHPgu9aN2kRwvJ3QZDHuPxYG4
          VZwljLxstlx57+N74D0aj6wrJw+iBH2BI+b+ZpnLXyy7
          -----END RSA PRIVATE KEY-----

To make it work you should also add a webserver with the name backend, and add your content there. There are more moving pieces using a deploy like this, so this is the justification for this repository, for people who never put anything on the deep web being able to enjoy it without busting their asses debugging some infrastructure.

Build

docker build -t strm/tor-hiddenservice-nginx .

Run

docker run -d --restart=always --name hiddensite \
       -v $(pwd)/web:/web strm/tor-hiddenservice-nginx 

Shell

docker run -it --rm -v $(pwd)/web:/web \
       --entrypoint /bin/bash strm/tor-hiddenservice-nginx

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].