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?

  • stratself@lemdro.id
    link
    fedilink
    English
    arrow-up
    5
    ·
    28 days 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)

  • artyom@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    29 days ago

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

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    28 days 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.

      • waldfee@feddit.orgdeleted by creator
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        By default, not at all. The server application needs to be sandboxed, firewalled, and proxied through Tor to prevent that

        • onlinepersona@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          26 days ago

          That seems like quite the hassle. I wouldn’t trust myself trying to host an anonymous service if all of that has to happen.

          The link you shared doesn’t mention any of that either. It might actually be putting people at risk who want to host hidden services.

          • waldfee@feddit.orgdeleted by creator
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            26 days ago

            The page I shared does also have a section about security advice which has a link to Onion services best practices by Riseup Collective. I figured that those who would be at risk in the event of an information leak would take this section to heart, because many use cases for onion services don’t actually require location hiding, like when the site is also available through the clearnet, or when the service is only used by you and people you trust. In those cases you may as well set HiddenServiceSingleHopMode 1 to reduce latency.

            It’s also worth noting that in the past some high-value onion services have been deanonymized, so depending on how much of a target the service is it’s worth considering taking extra precautions to prevent getting swatted if the server gets compromised