debian安装warp

#下载检测解锁程序,项目地址:https://github.com/sjlleo/netflix-verify
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && chmod +x nf

#执行
./nf

#通过代理执行
./nf -proxy socks5://127.0.0.1:40000

#官方教程:https://pkg.cloudflareclient.com/install
apt install lsb-release
apt-get -y install gnupg

#安装WARP仓库GPG 密钥:
curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

#添加WARP源:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

#更新APT缓存:
apt update

#安装WARP:
apt install cloudflare-warp

#注册WARP:
warp-cli register

#设置为代理模式(一定要先设置):
warp-cli set-mode proxy

#连接、断开WARP,测试解锁:
warp-cli connect
warp-cli disconnect
./nf -proxy socks5://127.0.0.1:40000

#查询代理后的IP地址:
curl ifconfig.me --proxy socks5://127.0.0.1:40000

#xray配置文件
{
    "api": {
        "services": ["HandlerService", "LoggerService", "StatsService"],
        "tag": "api"
    },
    "inbounds": [{
        "listen": "127.0.0.1",
        "port": 62789,
        "protocol": "dokodemo-door",
        "settings": {
            "address": "127.0.0.1"
        },
        "tag": "api"
    }],
    "outbounds": [{
        "protocol": "freedom",
        "settings": {}
    },
    {
        "tag": "netflix_proxy",
        "protocol": "socks",
        "settings": {
            "servers": [{
                "address": "127.0.0.1",
                "port": 40000
            }]
        }
    },
    {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
    }],
    "policy": {
        "system": {
            "statsInboundDownlink": true,
            "statsInboundUplink": true
        }
    },
    "routing": {
        "rules": [{
            "type": "field",
            "outboundTag": "netflix_proxy",
            "domain": ["geosite:netflix", "geosite:disney", "ipv6-test.com"]
        },
        {
            "inboundTag": ["api"],
            "outboundTag": "api",
            "type": "field"
        },
        {
            "ip": ["geoip:private"],
            "outboundTag": "blocked",
            "type": "field"
        },
        {
            "outboundTag": "blocked",
            "protocol": ["bittorrent"],
            "type": "field"
        }]
    },
    "stats": {}
}

#二级代理解锁
{
    "api": {
        "services": ["HandlerService", "LoggerService", "StatsService"],
        "tag": "api"
    },
    "inbounds": [{
        "listen": "127.0.0.1",
        "port": 30000,
        "protocol": "socks",
        "sniffing": {
            "enabled": true,
            "destOverride": ["http", "tls"]
        }
    }

    ],
    "outbounds": [{
        "protocol": "freedom",
        "settings": {}
    },

    //从v2ray中导出客户端配置,从配置文件中找到outbounds的节点信息,添加到此处,注意修改tag

    {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
    }],
    "policy": {
        "system": {
            "statsInboundDownlink": true,
            "statsInboundUplink": true
        }
    },
    "routing": {
        "rules": [{
            "type": "field",
            "outboundTag": "netflix_proxy",
            "domain": ["geosite:netflix", "geosite:disney", "ipv6-test.com"]
        },
        {
            "inboundTag": ["api"],
            "outboundTag": "api",
            "type": "field"
        },
        {
            "ip": ["geoip:private"],
            "outboundTag": "blocked",
            "type": "field"
        },
        {
            "outboundTag": "blocked",
            "protocol": ["bittorrent"],
            "type": "field"
        }]
    },
    "stats": {}
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。