CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

Onion services support

Open EthraZa opened this issue 3 years ago • 6 comments

Looks like CasaOS is missing a very cool feature found on projects like Umbrel and Citadel that allow us to access our services online in a very secure way via the Tor network.

This is the Tor Onion Services (formerly known as “hidden services”).

It seems It could be implemented on bare bones, like Home Assistant suggests or as a docker app like (docker-tor-hidden-service or onionize-docker for example).

For what I can see, the benefits of CasaOS implementing it as a core service is to be able to better control it and auto route every enabled app via the onion network.

Hope that you guys can take a look at it.

EthraZa avatar Sep 20 '22 18:09 EthraZa

We got it, Future version support

ETWang1991 avatar Sep 21 '22 08:09 ETWang1991

Wow, that's awesome! Does CasaOS have a roadmap or ETA site?

EDIT Just saw Projects link at right!

EthraZa avatar Sep 21 '22 12:09 EthraZa

Just my 2c. I made a test with onionize-docker and it works like a charm. It detects running apps on the connected networks and generate onion services to all apps.

tst\docker-compose.yml

version: '3'
services:

  onionize:
    image: torservers/onionize
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    networks:
      - bridge

  web:
    image: yeasy/simple-web:latest
    environment:
      - ONIONSERVICE_NAME=app
    ports:
      - 80:80
    networks:
      - bridge

networks:
  bridge:
    driver: bridge

run:

$ docker-compose up -d
Running ...

$ docker exec tst-onionize-1 cat /var/lib/tor/onion_services/app/hostname
xyz.onion

Open http://xyz.onion in Brave Tor Window or Tor Browser and profit.

EthraZa avatar Sep 25 '22 20:09 EthraZa

At the moment we have limited manpower, I try to label and prioritize first.

ETWang1991 avatar Feb 17 '23 09:02 ETWang1991