opsxcq/docker-tor

Unable to get things setup with docker compose

Closed this issue · 3 comments

Hello,

im trying hard to get your container working but for some reasone i always get the following output if i try to put it in front of my Load-balancer "app-proxy"

this is what my setup looks like:

services:
  tor:
    image: strm/tor
    networks:
      - backend
      - frontend
    depends_on:
      - app-proxy
    environment:
      LISTEN_PORT: "80"
      REDIRECT: "app-proxy:80"
      PRIVATE_KEY: |
        -----BEGIN RSA PRIVATE KEY-----
        NIICWwIBAAKAgQCrMdAsarbnBnb13jMvDc0j4lTbbUkSbcAr1IMJaIYm6brc7SX6
        Ul8BpkxkUHP8MF....

  app-proxy:
    container_name: app-proxy
    image: traefik  # The official Traefik docker image
    command: --api --docker  # Enables the web UI and tells Traefik to listen to docker
    ports:
      - 80:80      # The HTTP port
      - 8080:8080  # The Web UI (enabled by --api)
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock  # So that Traefik can listen to the Docker events
      - ./traefik:/etc/traefik
    networks:
      - backend
    environment:
      - "TZ=Europe/Amsterdam"

I expected that app-proxy container gets available trough the tor browser
but im not able to reach the .onion address.

this is what happends at my console:

tor_1 | server 132.163.97.3, stratum 1, offset -0.022202, delay 0.22206
tor_1 | 18 Mar 16:05:08 ntpdate[6]: adjust time server 132.163.97.3 offset -0.022202 sec
tor_1 | [+] Clock updated to Mon Mar 18 16:05:08 UTC 2019
tor_1 | [+] Starting tor
tor_1 | [+] Starting the listener at port 80, redirecting to app-proxy:80
tor_1 | Mar 18 16:05:08.851 [notice] Tor v0.2.5.16 (git-b08258d725df42eb) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1t and Zlib 1.2.8.
tor_1 | Mar 18 16:05:08.851 [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 | Mar 18 16:05:08.851 [notice] Read configuration file "/etc/tor/torrc".
tor_1 | Mar 18 16:05:08.854 [notice] Opening Socks listener on 127.0.0.1:9050
tor_1 | Mar 18 16:05:08.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
tor_1 | Mar 18 16:05:08.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
tor_1 | Mar 18 16:05:08.000 [notice] Bootstrapped 0%: Starting
tor_1 | Mar 18 16:05:09.000 [notice] Bootstrapped 5%: Connecting to directory server
tor_1 | Mar 18 16:05:10.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
tor_1 | Mar 18 16:05:10.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
tor_1 | Mar 18 16:05:10.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
tor_1 | Mar 18 16:05:10.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
tor_1 | Mar 18 16:05:10.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
tor_1 | Mar 18 16:05:12.000 [notice] Bootstrapped 40%: Loading authority key certs
tor_1 | Mar 18 16:05:12.000 [notice] Bootstrapped 45%: Asking for relay descriptors
tor_1 | Mar 18 16:05:12.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/6648, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw.)
tor_1 | Mar 18 16:05:12.000 [notice] Bootstrapped 50%: Loading relay descriptors
tor_1 | Mar 18 16:05:13.000 [notice] Bootstrapped 55%: Loading relay descriptors
tor_1 | Mar 18 16:05:13.000 [notice] Bootstrapped 60%: Loading relay descriptors
tor_1 | Mar 18 16:05:14.000 [notice] Bootstrapped 65%: Loading relay descriptors
tor_1 | Mar 18 16:05:14.000 [notice] Bootstrapped 71%: Loading relay descriptors
tor_1 | Mar 18 16:05:14.000 [notice] Bootstrapped 76%: Loading relay descriptors
tor_1 | Mar 18 16:05:14.000 [notice] We now have enough directory information to build circuits.
tor_1 | Mar 18 16:05:14.000 [notice] Bootstrapped 80%: Connecting to the Tor network
tor_1 | Mar 18 16:05:15.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
tor_1 | Mar 18 16:05:15.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
tor_1 | Mar 18 16:05:15.000 [notice] Bootstrapped 100%: Done

???

Thank's in advance

Do you get any error trying to access the hidden service ?

I simply get nothing at all. If i ask the container for current onion sites i get the return that there are none at all?!
Any idea what else i could try?
Beside, could you maybe build a new base image with latest tor version and push it to dockerhub? would be awesome.

Got it working. Everything fine