Loading... ##0.环境 ubuntu16.04 ocserv0.12.3 ##1.安装编译udp-broadcast-relay ``` git clone https://github.com/nomeata/udp-broadcast-relay.git cd udp-broadcast-relay make ln -s `pwd`/udp-broadcast-relay /usr/bin/udp-broadcast-relay ``` ##2.创建DUP广播脚本 `vim /etc/ocserv/udp-broadcast-relay` ``` #!/bin/bash killall udp-broadcast-relay udp-broadcast-relay -f 1 23333 eth0 ``` `chmod -R 777 /etc/ocserv/udp-broadcast-relay` 规则详情 项目地址[udp-broadcast-relay](https://github.com/nomeata/udp-broadcast-relay "udp-broadcast-relay") ##3.修改ocserv.conf并重启 ###1.添加或修改为 ``` connect-script = /etc/ocserv/udp-broadcast-relay disconnect-script = /etc/ocserv/udp-broadcast-relay ``` ###2.重启 ``` /etc/init.d/ocserv stop /etc/init.d/ocserv start ``` 最后修改:2019 年 08 月 10 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏