debian/ubuntu安装
apt install coturn
centos安装
yum install coturn coturn-utils
编辑配置文件/etc/turnserver.conf
listening-port=3478
listening-ip=172.31.25.80
listening-ip=240b:4001:210:4a01:f788:1b78:de22:8707
external-ip=8.218.139.135/172.31.25.80
user=test:123456
log-file=/var/log/turn.log
如果监听的IP不是公网IP还需要指定external-ip
systemctl enable coturn
systemctl restart coturn
然后防火墙开放3478端口,包括UDP和TCP