Restund + prosody mod_turncredentials


I want setup restund that it's working together with prosody mod_turncredentials.
My problem is the authentication. Is there anybody who can give me some help?

Best regards

1 Like

I would be also interested in this. At least the above linked page claims that it should work.

My guess would be that it used the restauth method? From the Restund readme (

3.8. Restauth

The restauth module implements the REST-based authentication as defined
in draft-uberti-behave-turn-rest-00 [REST]. Multiple shared secrets can be
configured, and stored in one of the Database backends.

The script util/ can be used to generated REST username
and password.

Example with backend:

 user  = test
 realm = myrealm
 pass  = secret

$ echo -n "test:myrealm:secret" | md5

add this entry to /etc/restund.auth:


$ ./util/ myrealm test 3600 secret
username = 1415180577:test
password = u8E4rTThLqLYFDi/uRTYU4wtTaM=

(your output will be different as the time is different)
This username/password is valid for 1 hour and can then be passed
to the TURN Client.

Anyone got that working and can give us a quick guide?