记录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的端口

相关推荐
阿拉伯柠檬几秒前
网络层协议IP(二)
linux·网络·网络协议·tcp/ip·面试
静谧空间1 分钟前
Linux自动备份Mysql数据
linux·运维·mysql
技术摆渡人4 分钟前
专题一:【BSP 核心实战】Linux 系统死机与 DDR 稳定性“法医级”排查全书
linux·驱动开发·车载系统
素雨迁喜11 分钟前
Linux系列文章(3)指令和权限
linux·运维·服务器
EndingCoder12 分钟前
反射和元数据:高级装饰器用法
linux·运维·前端·ubuntu·typescript
yes_p_m22 分钟前
Ubuntu误删/lib64自救指南
linux·运维·ubuntu
数智工坊29 分钟前
【操作系统-线程介绍】
linux·算法·ubuntu
济61736 分钟前
linux 系统移植(第十期)----Linux 顶层 Makefile详谈-- Ubuntu20.04
linux·服务器·数据库
大柏怎么被偷了40 分钟前
【Linux】线程的概念
java·linux·jvm
Q16849645151 小时前
Linux-周期任务易错问题
linux·运维·服务器