中文 | English
该脚本可以帮你快速在openwrt上部署wireguard,为你生成3个用户,首先,你要确认你的openwrt已经安装好如下wireguard相关组件。 kmod-wireguard
luci-app-wireguard
luci-proto-wireguard
wireguard-tools
git clone https://github.com/maytom2016/wireguard_configshell.git
并编辑ipport.conf
0.0.0.0:23456
将0.0.0.0替换成你的连接IP地址
sh run.sh
可以参考log.txt里面的内容进行操作。成功后需要手动重启openwrt。
git clone https://github.com/maytom2016/wireguard_configshell.git
进入win文件夹。
0.0.0.0:23456
将0.0.0.0替换成你的连接IP地址
你可以直接使用powershell打开,也可以用cmd在目录下执行如下命令:
powershell.exe .\configwireguard.ps1
你可以在/win/conf目录中,服务器配置文件为wg0.conf,客户端配置为c1-c*.conf。
将配置分别导入对应主机中就可以使用。
最终实现效果wireguard各节点进行之间通信。