前两天把OpenWrt升级了一次,因为之前折腾过一些插件,系统存储占用有点高;
重新安装后的OpenWrt其他一切正常,唯有ByPass插件不正常;
节点检测正常,但连接时显示Current server : xxx erro

开SSH查看,发现了一些异样,/var/etc/bypass/ss-by-retcp.json文件如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
"server":"xxx.xxx.xxx.xxx",
"server_port":65432,
"local_address":"0.0.0.0",
"local_port":1234,
"password":"password",
"timeout":60,
"method":"chacha20-ietf-poly1305",
"reuse_port":true,
"fast_open":false
}

这里,配置缺少了协议混淆的配置;
ByPass的协议混淆是由simple-obfs提供的obfs-local
遂检查OpenWrt种是否安装simple-obfs,确实没有安装;
安装后,再检查/var/etc/bypass/ss-by-retcp.json,如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
{
"server":"xxx.xxx.xxx.xxx",
"plugin":"obfs-local",
"plugin_opts":"obfs=tls;obfs-host=xxxxxx.microsoft.com",
"server_port":65432,
"local_address":"0.0.0.0",
"local_port":1234,
"password":"password",
"timeout":60,
"method":"chacha20-ietf-poly1305",
"reuse_port":true,
"fast_open":false
}

可以看到obfs-local以及相关的混淆参数在配置中出现了;
检查插件运行情况,一切恢复正常。