Skip to content

Mythologyli/websocket-via-webvpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket via ZJU Web VPN

通过浙大 Web VPN 访问内网中的 WebSocket 服务

使用示例:访问内网中的 VMess 服务端

内网服务器配置

  1. 下载 v2ray-core

  2. 生成 UUID

    $ ./v2ray uuid
  3. 修改配置文件为:

    {
      "inbounds": [
        {
          "port": 65050,
          "protocol": "vmess",
          "settings": {
            "clients": [
              {
                "id": "UUID",
                "alterId": 0
              }
            ]
          },
          "streamSettings": {
            "network":"ws"
          }
        }
      ],
      "outbounds": [
        {
          "protocol": "freedom",
          "settings": {}
        }
      ]
    }
  4. 启动 v2ray-core

    $ ./v2ray run

校外计算机配置

  1. 下载 websocket-via-webvpn

  2. 编写配置文件 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": "/"
    }
  3. 启动 websocket-via-webvpn

    $ ./websocket-via-webvpn -config config.json
  4. 此时可以通过本机的 127.0.0.1:8000 访问内网中的 VMess 服务端

致谢

About

通过浙大 Web VPN 访问内网中的 WebSocket 服务

Topics

Resources

License

Stars

Watchers

Forks

Languages