TURN Server behind Caddy reverse proxy

1. The problem I’m having:

Hello,
I have a matrix synapse server running successfully behind caddy reverse proxy.
Now I want to host an TURN Server behind it too, so that calls are possible.
I have no idea where to start (I currently only have basic knowledge) and didn’t find anything except this.
I hoped someone here has experience with this and maybe can help me a little bit.

Thanks :slight_smile:

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

latest

4. How I installed and ran Caddy:

a. System environment:

Debian LXC

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

5. Links to relevant resources:

My understanding is that TURN servers are TCP.

A stock build of Caddy only comes with an HTTP server & proxy.

You’ll need to use GitHub - mholt/caddy-l4: Layer 4 (TCP/UDP) app for Caddy if you want to proxy arbitrary TCP/UDP traffic.

There’s probably not much benefit to this though. You should probably just expose your TURN server’s port publicly.

1 Like

Turn can also use DTLS/UDP, SCTP/TLS as well as TCP/TLS, so it depends a little on the configuration.

Looks like it. Now I just have to find out which ports are nesessary for matrix-synapse -.-

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.