参考链接:
https://github.com/jselbie/stunserver
https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/
stun服务器简介
略
stun服务器安装
- 下载文件
git clone https://github.com/jselbie/stunserver.git
wget https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz
-
解压boost
-
编辑common.inc
在头部添加 BOOST_INCLUDE := -I/data/stun/boost_1_72_0 让make时不会报file not found
BOOST_INCLUDE := -I/data/stun/boost_1_72_0
-
编译 make
直接在目录中执行make,会编译出可执行文件stunserver,找个位置执行即可。 -
防火墙开通端口
udp:3478
后记
这个实际部署出的stun服务器,测试可行,但需要以实际网络为准,可能依旧无法打洞出来。当然用来当中继也是不行的。不清楚哪里问题,欢迎指导。