通过浙大 Web VPN 访问内网中的 WebSocket 服务
-
下载 v2ray-core
-
生成 UUID
$ ./v2ray uuid
-
修改配置文件为:
{ "inbounds": [ { "port": 65050, "protocol": "vmess", "settings": { "clients": [ { "id": "UUID", "alterId": 0 } ] }, "streamSettings": { "network":"ws" } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] }
-
启动 v2ray-core
$ ./v2ray run
-
下载 websocket-via-webvpn
-
编写配置文件
config.json
,内容为:{ "host": "127.0.0.1", "port": 8000, "username": "", "password": "", "websocket_host": "10.10.98.98", "websocket_port": 65050, "websocket_ssl": false, "websocket_path": "/" }
-
启动 websocket-via-webvpn
$ ./websocket-via-webvpn -config config.json
-
此时可以通过本机的
127.0.0.1:8000
访问内网中的 VMess 服务端