xray 链式分流

很多时候,会有一种这样的需求:不希望在本地客户端(如:openrt  Passwall)上进行分流,甚至有的客户端根本不支持分流(如 iPhone 小火箭、Android v2rayNG、Windows v2rayN),那么如何能做到Netflix、Disney Plus透过新加坡节点观看,ChatGPT、动画疯、纬来体育透过中华电信节点来看,其余流量均走香港节点呢?

这时候 xray 链式分流便能解决这一切,本地网络只需要访问香港节点,便可解决这一切。

上海移动&芜湖移动 -> 搬瓦工香港HK85

芜湖电信 ->国内深圳移动VPS NAT鸡->搬瓦工香港HK85

{
    "log": {
        "loglevel": "warning",
        "access": "/var/log/xray/access.log",
        "error": "/var/log/xray/error.log"
    },
    "inbounds": [
        {
            "tag": "vless-in",
            "listen": "0.0.0.0",
            "port": 30553,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "ece2e663-95dc-4aef-9ba8-ca7472eac03b",
                        "flow": "xtls-rprx-vision"
                    }
                ],
                "decryption": "none"
            },
            "streamSettings": {
                "network": "tcp",
                "security": "reality",
                "realitySettings": {
                    "dest": "www.microsoft.com:443",
                    "serverNames": [
                        "www.microsoft.com",
                        "microsoft.com"
                    ],
                    "privateKey": "eCAH67oe1dJ6jm8SKw5EfZIndktAphzXW5tXLQ7KRnv",
                    "shortIds": [
                        "6ba65179e30d4fc3"
                    ]
                }
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls",
                    "quic"
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "tag": "direct"
        },
        {
            "protocol": "shadowsocks",
            "tag": "server_HKBGP",
            "settings": {
                "servers": [
                    {
                        "address": "35.90.122.113",
                        "port": 9527,
                        "method": "aes-256-gcm",
                        "password": "jd1+0}nfVM*@]Y?t"
                    },
                    {
                        "address": "2400:8a20:170::12f",
                        "port": 9527,
                        "method": "aes-256-gcm",
                        "password": "jd1+0}nfVM*@]Y?t"
                    }
                ]
            }
        },
        {
            "protocol": "shadowsocks",
            "tag": "server_SG",
            "settings": {
                "servers": [
                    {
                        "address": "49.150.61.51",
                        "port": 9527,
                        "method": "aes-256-gcm",
                        "password": "jd1+0}nfVM*@]Y?t"
                    },
                    {
                        "address": "2603:c024:450f:3066:c938:9bea:1049:6608",
                        "port": 9527,
                        "method": "aes-256-gcm",
                        "password": "jd1+0}nfVM*@]Y?t"
                    }
                ]
            }
        },
        {
            "protocol": "blackhole",
            "tag": "block"
        }
    ],
    "routing": {
        "rules": [
            {
                "type": "field",
                "domain": [
                    "chatgpt.com",
                    "openai.com",
                    "netflix.com",
                    "netflix.net",
                    "nflximg.com",
                    "nflximg.net",
                    "nflxvideo.net",
                    "nflxext.com",
                    "nflxso.net",
                    "fast.com",
                    "netflix.ca",
                    "nflxsearch.net",
                    "netflixdnstest1.com",
                    "netflixdnstest2.com",
                    "netflixdnstest3.com",
                    "netflixdnstest4.com",
                    "netflixdnstest5.com",
                    "netflixdnstest6.com",
                    "netflixdnstest7.com",
                    "netflixdnstest8.com",
                    "netflixdnstest9.com",
                    "netflixdnstest10.com",
                    "netflixinvestor.com",
                    "netflixtechblog.com",
                    "netflix.com.au",
                    "netflix.com.edgesuite.net",
                    "netflixinvestor.com",
                    "netflixstudios.com",
                    "disney.api.edge.bamgrid.com",
                    "disney-plus.net",
                    "disneyplus.com",
                    "dssott.com",
                    "dssott.com.akamaized.net",
                    "disneynow.com",
                    "disneystreaming.com",
                    "cdn.registerdisney.go.com",
                    "omtrdc.net",
                    "disney.asia",
                    "20thcenturystudios.com.au",
                    "20thcenturystudios.jp",
                    "abc-studios.com",
                    "abc.com",
                    "adobedtm.com",
                    "adventuresbydisney.com",
                    "babble.com",
                    "babyzone.com",
                    "bam.nr-data.net",
                    "beautyandthebeastmusical.co.uk",
                    "conviva.com",
                    "dilcdn.com",
                    "bamgrid.com",
                    "braze.com",
                    "go.com",
                    "d9.flashtalking.com",
                    "disney.com",
                    "disneyjunior.com",
                    "disney-plus.net",
                    "disneyplus.com",
                    "cws.conviva.com",
                    "execute-api.us-east-1.amazonaws.com",
                    "go-mpulse.net",
                    "disneynow.com",
                    "disney-portal.my.onetrust.com",
                    "disneyplus.bn5x.net",
                    "adobedtm.com",
                    "optimizely.com",
                    "disneystreaming.com",
                    "go-disneyworldgo.com",
                    "thestationbymaker.com",
                    "thisispolaris.com",
                    "watchdisneyfe.com",
                    "watchespn.com"
                ],
                "outboundTag": "server_SG"
            },
            {
                "type": "field",
                "inboundTag": ["vless-in"],
                "outboundTag": "server_HKBGP"
            }
        ]
    }
}

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据