dependabot[bot] f27292429f build(deps): bump docker/build-push-action from 4.0.0 to 4.1.1 (#59) | il y a 1 an | |
---|---|---|
.github | il y a 1 an | |
CHANGELOG.md | il y a 1 an | |
Dockerfile | il y a 1 an | |
Makefile | il y a 2 ans | |
README.md | il y a 2 ans | |
ansible-playbook.yml | il y a 4 ans | |
docker-compose.yml | il y a 2 ans | |
entrypoint.sh | il y a 4 ans | |
tor-changelog.url | il y a 3 ans | |
tor-package-log.url | il y a 1 an | |
torrc.template | il y a 4 ans |
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
$ sudo docker run --name onion_service \
-e VIRTUAL_PORT=80 -e TARGET=1.2.3.4:8080 \
fphammerle/onion-service
$ 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
$ sudo docker exec onion_service cat /onion-service/hostname
abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrst.onion
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)
$ 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
git clone https://github.com/fphammerle/docker-onion-service
docker-compose.yml
sudo docker-compose up --build
onion service protocol overview
ways to publish onion services: