No Description

dependabot[bot] f27292429f build(deps): bump docker/build-push-action from 4.0.0 to 4.1.1 (#59) 1 year ago
.github f27292429f build(deps): bump docker/build-push-action from 4.0.0 to 4.1.1 (#59) 1 year ago
CHANGELOG.md 191c37fcf0 install new `gettext-envsubst` package instead of `gettext` (to remove unused components from image) 1 year ago
Dockerfile 191c37fcf0 install new `gettext-envsubst` package instead of `gettext` (to remove unused components from image) 1 year ago
Makefile f56fd5bc3e make: add target "docker-manifest-push" 2 years ago
README.md c29205fb47 readme: fix link 2 years ago
ansible-playbook.yml b5f31829c8 ansible playbook: upgrade image 4 years ago
docker-compose.yml a022c7878d docker-compose: remove ineffective/breaking (depending on compose version) option `tmpfs.mode` 2 years ago
entrypoint.sh 869b5f4d10 fill torrc template with envsubst 4 years ago
tor-changelog.url 0599554fd6 upgrade tor package v0.4.4.6-r1 -> v0.4.4.7r1 3 years ago
tor-package-log.url 1cfcdfb9bc upgrade alpine base image from v3.17.3 to v3.18.0 including upgrade of tor package from v0.4.7.13-r1 to v0.4.7.13-r2 (rebuild for zstd) & gettext package from v0.21.1-r1 to v0.21.1-r5 (see below) 1 year ago
torrc.template 14f8bdb506 added option to enable non-anonymous single hop mode 4 years ago

README.md

docker: hidden tor .onion service 🐳

repo: https://github.com/fphammerle/docker-onion-service

docker hub: https://hub.docker.com/r/fphammerle/onion-service/tags

signed tags: https://github.com/fphammerle/docker-onion-service/tags

defaults to creating a v3 service

example 1

$ sudo docker run --name onion_service \
    -e VIRTUAL_PORT=80 -e TARGET=1.2.3.4:8080 \
    fphammerle/onion-service

example 2

$ sudo docker create --name onion_service \
    --env VERSION=3 \
    --env VIRTUAL_PORT=80 \
    --env TARGET=1.2.3.4:8080 \
    --volume onion-key:/onion-service \
    --restart unless-stopped \
    --cap-drop all --security-opt no-new-privileges \
    fphammerle/onion-service:latest

$ sudo docker start onion_service

optionally add --read-only --tmpfs /tmp:rw,size=4k to make the container's root filesystem read only

retrieve hostname

$ sudo docker exec onion_service cat /onion-service/hostname
abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrst.onion

single-hop mode

in single-hop mode connections from the onion service to introduction & rendezvous points will be direct and thus no longer anonymous:

$ sudo docker run -e NON_ANONYMOUS_SINGLE_HOP_MODE=1 …

useful to reduce latency (e.g. clearnet http servers setting alt-svc header)

show circuits

$ sudo docker exec onion_service \
    sh -c 'printf "AUTHENTICATE\nGETINFO circuit-status\nQUIT\n" | nc localhost 9051'

relay search: https://metrics.torproject.org/rs.html

docker-compose 🐙

  1. git clone https://github.com/fphammerle/docker-onion-service
  2. edit docker-compose.yml
  3. sudo docker-compose up --build

further reading

onion service protocol overview

operational security

http

ways to publish onion services: