Skip to content

使用WARP Client V2ray/Xray服务端流媒体解锁

Notifications You must be signed in to change notification settings

flytutu-susu/XrayWarp

This branch is 3 commits ahead of willoong9559/XrayWarp:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e22084e · Mar 5, 2024

History

7 Commits
Mar 5, 2024

Repository files navigation

现在机场大多数使用的是Dnsmasq将网站解析劫持到SNI proxy反向代理的页面上。

这里是使用WARP Client进行代理解锁Netflix等。 可以去cloudfalre官方页面有详细的安装流程和原理,不赘述。 个人认为官方socks这种代理方式更灵活且优雅。 https://developers.cloudflare.com/warp-client/setting-up/linux

这里写下我的配置过程

  1. 注册客户端

    warp-cli register
  2. 设置WARP代理模式

    warp-cli set-mode proxy
  3. 连接WARP

    warp-cli connect

​ 此时WARP会使用socks5本机代理127.0.0.1:40000

  1. 打开warp always-on

    warp-cli enable-always-on
  2. 测试socks代,理检查ip是否改变

    export ALL_PROXY=socks5://127.0.0.1:40000
    curl ifconfig.me
  3. 打开x-ui的配置文件

    vim /usr/local/x-ui/bin/config.json	
  4. 修改sniffing段落,inbounds要启动sniffing

    "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
    }
  5. 修改outbounds和分流规则,我的配置是代理转发了netflix和openai、binance(通过cf代理的ip访问币安)

     "outbounds": [
            {
                "tag": "default",
                "protocol": "freedom"
            },
            {
                "tag":"socks_out",
                "protocol": "socks",
                "settings": {
                    "servers": [
                         {
                            "address": "127.0.0.1",
                            "port": 40000
                        }
                    ]
                }
            }
        ],
        "routing": {
            "rules": [
                {
                    "type": "field",
                    "outboundTag": "socks_out",
                    "domain": [
                    	"geosite:netflix",
                    	"geosite:openai",
                    	"geosite:instagram",
                        "geosite:binance"
             		]
                },
                {
                    "type": "field",
                    "outboundTag": "default",
                    "network": "udp,tcp"
                }
            ]
        }
  6. 更新geosite和geoip

    curl -s -L -o /usr/local/x-ui/bin/geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
    curl -s -L -o /usr/local/x-ui/bin/geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
  7. 重新启动x-ui的xray

    x-ui

About

使用WARP Client V2ray/Xray服务端流媒体解锁

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published