|
本帖最后由 liaohcai 于 2024-1-16 02:24 编辑
opengnb一款异地组网小插件,
它有两种模式
lite模式
safe模式
但是无论哪种网对网配置对普通用户有点难度
我抽了点时间写了一个lite模式下全自动化脚本,能一键完成安装、下载、配置、运行等步骤。
首先运行下列一条安装脚本
- curl http://liaohc.dns.army:19213/gnb-lite_install.sh |sh
复制代码 或者
- sh -c "$(curl http://webd.liaoh.dedyn.io:19213/gnb-lite_install.sh)"
复制代码 接下来两种方式:
第一种方式,是在计划任务中进行填写
比如:
本地网络
*/1 * * * * /etc/storage/gnb-lite.sh -p test1234 -a 10.1.0.2 -r 192.168.3.0/24,10.1.0.3
对端网络
*/1 * * * * /etc/storage/gnb-lite.sh -p test1234 -a 10.1.0.3 -r 192.168.2.0/24,10.1.0.2
记得要“应用设置”
第二种方式,是直接运行命令
- /etc/storage/gnb-lite.sh -p <虚拟网络名称> -a <10.1.0.x> -r <对端网段>/24,<10.1.0.y>
复制代码 比如:
本地网络
/etc/storage/gnb-lite.sh -p test1234 -a 10.1.0.2 -r 192.168.3.0/24,10.1.0.3
对端网络
/etc/storage/gnb-lite.sh -p test1234 -a 10.1.0.3 -r 192.168.2.0/24,10.1.0.2
查看脚本内容,请输入:
- curl http://webd.liaoh.dedyn.io:19213/gnb-lite_install.sh
复制代码 和
- curl http://webd.liaoh.dedyn.io:19213/gnb-lite.sh
复制代码
此脚本参考了各位大佬的帖子,所用的插件版本是1.3.0.c
@8267大佬的
@99010大佬的
最后感谢@gnbuser大神提供的项目
_________________________________
跑一下外网速度:
————————————————————
补上之前的数据
vnt :pandavan---openwrt(mt7621):56M
gnb:pandavan---openwrt(mt7621):38M
gnb:pandavan---padavan(mt7621):58.4M
gnb:pandavan---openwrt(mt7981):60M
都是不加密的
ipv6:pandavan---openwrt(mt7621):62M
ipv4:pandavan---openwrt(mt7621):63M
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|