当前位置: 首页 > Linux

NAT穿越服务器STUNServer的安装与使用

时间:2023-04-06 03:37:25 Linux

我们在使用SIP客户端呼叫时,经常会遇到复杂的网络NAT环境。这时候我们需要安装STUNServer/TurnServer来进行遍历。这里简单记录一下STUNServer的安装和启动步骤:yum-yinstallgccyum-yinstallmakeyum-yinstallboost*#ForBoostyum-yinstallopenssl*#ForOpenSSLwgethttp://www.stunprotocol.org/s...tarzxvfstunserver-1.2.3.tgzcdstunservermake#检查环境是否OK./stuntestcodenohup/usr/local/stunserver/stunserver--modebasic--primaryinterface172.31.78.132&nohup./stunserver--modefull--primaryinterfaceeth0--altinterfaceeth0&full-featuredmoderequires2IPs./stunserver--modefull--primaryinterface47.52.229.136--altinterface172.31.78.132nohup./stunserver--modebasic--primaryinterface172.31.78.132basicmode1IP./stunserver--modebasic--primaryinterface47.52.229.136--altinterface172.31.78.132./stunserver--help查看参数说明!文档:http://zengqf.gitee.io/ifrees...