Install TURN server on NS8 for nextcloud

Hi,

Quick, crude and probably dirty way to install a TURN server for nextcloud (in order to enable Talk video chats through NAT)

It is surprisingly easy :slight_smile:

# install coturn
dnf install coturn

# edit configuration
nano /etc/coturn/turnserver.conf

# I used those parameters 
fingerprint
use-auth-secret
static-auth-secret=yoursecretkey
realm=yourfqdn
total-quota=0
bps-capacity=0
stale-nonce
syslog
simple-log
no-multicast-peers
no-rfc5780
no-stun-backward-compatibility
response-origin-only-with-rfc5780

# enable and start the service
systemctl enable coturn
systemctl start coturn

# open the port (wasn't sure UDP or TCP)
firewall-cmd --add-port=3478/tcp
firewall-cmd --add-port=3478/udp

Configure the parameters in nextcloud in admin section : https://yourdrive/settings/admin/talk

That’s all ! Easy, isn’t it ?

Probably installing this directly onto NS8 ad not as module isn’t the best practise. I wish a super easy to use dummy module will exist one day.

6 Likes

I had requested that the hPB for talk as well as this be bundled into nextcloud for NS8. However for turn. Couldn’t the ones for ejabberd be used?

Probably. There is nothing really special in those turn servers as far as I can tell. It’s more like a belt between two pulleys.

It also came to my mind that this could be simply integrated into our nextcloud container.

1 Like