lala.im:使用Xray实现联通免流

運維技術·VPN代理·lala.im · 2021-05-11 · 109 人浏览

原文地址:https://lala.im/7880.html,請支持原作者!該處僅作轉載。

今天比较无聊,折腾了一下联通免流,没想到过程还挺顺利的,坐标武汉联通测试可用。
下面直接给一份服务端的配置文件吧:

{
    "log": {
        "loglevel": "warning"
    },
    "inbounds": [
        {
            "listen": "0.0.0.0",
            "port": 80,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "04e09d0b-aaf9-41c0-9e06-879f5838c748" // 填写你生成的UUID
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "tcpSettings": {
                    "header": {
                        "type": "http",
                        "response": {
                            "version": "1.1",
                            "status": "200",
                            "reason": "OK",
                            "headers": {
                                "Content-Type": ["application/octet-stream", "video/mpeg"],
                                "Transfer-Encoding": ["chunked"],
                                "Connection": ["keep-alive"],
                                "Pragma": "no-cache"
                            }
                        }
                    }
                }
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom"
        }
    ]
}

我没有测试除80端口外的其他端口是否可行,有兴趣的可以自己测试一下。
客户端我用的shadowrocket,配置如下:

範例
[重要]传输方式这里的Host配置为:pull.free.video.10010.com

範例
测试了一下,完全OK:

範例
虽然我是用的xray,但这个配置v2ray肯定也是可以用的,因为就一个vmess+http伪装。

運維技術 VPN代理 lala.im
Theme Jasmine by Kent Liao