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

相关推荐
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698031 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
tntxia3 天前
linux curl命令详解_curl详解
linux
扛枪的书生3 天前
Linux 网络管理器用法速查
linux
顺风尿一寸3 天前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
XIAOHEZIcode3 天前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
唐青枫4 天前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux