Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. Use external turn server

Use external turn server

Scheduled Pinned Locked Moved Matrix (Synapse/Element)
6 Posts 3 Posters 1.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      E Offline
      eganonoa
      wrote on last edited by
      #1

      Is there any way to change the turn server in matrix in order to use an external one? I need to do this because I proxy my services behind Cloudflare, which renders the Cloudron turn server inoperable.

      The challenge here is that changing the turn server in homeserver.yaml doesn't take effect without a restart (at least I think), which then results in the homeserver.yaml file being overwritten with the Cloudron turn server.

      Any thoughts on how I might do this would be much appreciated. Currently we can only make calls successfully within our network and need to use our external turn server in order to then start rolling out matrix/element to our wider network.

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        Does Matrix respect SRV DNS records?

        Cloudflare can be set up for those and pass the hints to the TURN ports you already have.

        Conscious tech

        E 2 Replies Last reply
        0
        • robiR robi

          Does Matrix respect SRV DNS records?

          Cloudflare can be set up for those and pass the hints to the TURN ports you already have.

          E Offline
          E Offline
          eganonoa
          wrote on last edited by
          #3

          @robi Thanks very much for the reply! It does seem like matrix does respect SRV DNS records (see e.g. here and here).

          I think I'd still prefer to add our external turn server as it works on port 443. But this is definitely something I'm keen to explore. I'll have a play around to see if that can work around things.

          1 Reply Last reply
          0
          • robiR robi

            Does Matrix respect SRV DNS records?

            Cloudflare can be set up for those and pass the hints to the TURN ports you already have.

            E Offline
            E Offline
            eganonoa
            wrote on last edited by
            #4

            @robi That doesn't do the trick unfortunately. It results in the underlying IP of the cloudron server being exposed, which undermines the purpose of the cloudflare proxying.

            So i think I still need to find a way to add in our external turn server and allow it to survive a reboot.

            1 Reply Last reply
            0
            • andreasduerenA Offline
              andreasduerenA Offline
              andreasdueren
              wrote on last edited by
              #5

              @girish Running into the same problem here. The built in TURN server is notoriously unstable (at least on my setup) which is why I would like to try using the same external one I set up for my nextcloud instance. However the config get overwritten every time its restarted. I added my custom config above the built in one hoping it will use these instead but have to do some testing what happens.

              I would love having the same option here for 7.4

              E 1 Reply Last reply
              2
              • andreasduerenA andreasdueren

                @girish Running into the same problem here. The built in TURN server is notoriously unstable (at least on my setup) which is why I would like to try using the same external one I set up for my nextcloud instance. However the config get overwritten every time its restarted. I added my custom config above the built in one hoping it will use these instead but have to do some testing what happens.

                I would love having the same option here for 7.4

                E Offline
                E Offline
                eganonoa
                wrote on last edited by
                #6

                @andreasdueren @girish confirmed a couple days ago that this was coming in 7.4. It was originally scheduled for 7.3, but didn't make it. I hope it does as it's pretty critical for anyone wanting to use a turnserver in academic or corporate contexts.

                1 Reply Last reply
                2
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search