Could you host a matrix server using only the Tor network? If so it would make it possible to have a communication tool thats not only encrypted but anonymous, I assume much would have to be changed and maybe federations wouldn't work at all but would it be theoretically possible?

all 4 comments

sorted by: hot top controversial new old
[–] 5 points 1 month ago

I mean it would make way more sense to use one of the many messengers that explicitly use TOR like Cwtch or Briar.

  • source
  • [–] 4 points 1 month ago

    Yes and federation works. The caveat is that since Matrix s2s de facto mandates TLS certs, you'll need to use self-signed certs as well as accept them from other onion peers. I've been aware of some more involved setups where a server name on the clearnet can be manually mapped to its Tor onionsite as well.

    Beyond that, c2s is just a simple HTTP service, and most clients should support it assuming they have a way to hop on Tor (Orbot, SOCKS5 proxy etc)

  • source
  • [–] 2 points 1 month ago

    I think it's possible to run anything that can be run over a network over Tor. Tor can be set up as a proxy for any piece of software.

  • source
  • [–] 1 point 1 month ago

    or just use SimpleX

  • source