记录ubuntu 部署coturn服务 搭建Turn/Stun服务器

1.安装coturn

复制代码
sudo apt-get -y update
sudo apt-get install coturn
systemctl stop coturn

2.启用coturn,取消注释:TURNSERVER_ENABLED=1

目录:/etc/default/coturn

3.备份和创建配置文件

目录:/etc/turnserver.conf

添加以下配置:
复制代码
listening-port=3478
tls-listening-port=5349
fingerprint
lt-cred-mech
server-name=domain
realm=domain
total-quota=100
stale-nonce=600

min-port=49152
max-port=65535
verbose
log-file=/var/log/turn.log
syslog
lt-cred-mech
user=test:test
cli-password=test

proc-user=turnserver
proc-group=turnserver

4.开启coturn服务器

复制代码
systemctl start coturn

5.检查服务状态

复制代码
    systemctl status coturn

6.最后通过Trickle ICE测试是否部署成功

备注:服务器需开放3478的TCP/UDP的端口,40000-60000的UDP的端口

相关推荐
未济1 天前
linux 配置环境变量
linux
傲世仙尊1 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
_艾伦 耶格尔.1 天前
进程间通信
linux
Liuqy-051 天前
Linux IO编程——静态库、动态库
linux
彧azz2 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅2 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK2 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid
琥珀色糖2 天前
SimlpeHttp
linux·服务器
qeen872 天前
【Linux】操作系统之进程介绍(二)
linux·笔记·学习·进程
Zenova EdgeOS2 天前
Linux ss 工业边缘网络分析实战
linux·python·边缘计算·工业网关