安装官方 Warp 客户端和 proxychains4 apt update && apt install -y curl gnupg lsb-release proxychains4 curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflare-client.list apt update && apt install -y cloudflare-warp 注册设备和修改设置 warp-cli register # 看提示输入Y warp-cli set-mode proxy warp-cli set-proxy-port 1835 # 可以自己改本地监听端口 warp-cli connect warp-cli enable-always-on 手!动!修!改! nano /etc/proxychains4.conf 最后一行 socks4 开头的内容改成 socks5 127.0.0.1 1835 # 上面那个端口 测试 `proxychains4 curl ip.sb` > 应该会输出 104.xx 的 cloudflare ip 使用 支持 socks5 代理的应用直接设置 sock5 代理,不支持的在命令前面加上 proxychains4**,v2ray系需要添加一个 socks5 outbound 作为出口 v2ray 系配置文件示例: 默认 V6 直连,V4 通过 warp 转发 { "routing": { "rules": [ { "type": "field", "ip": [ "0.0.0.0/0" ], "outboundTag": "outbound-warp" }, { "type": "field", "ip": [ "::/0" ], "outboundTag": "direct" } ] }, "outbonds": [ { "tag": "outbound-warp", "protocol": "socks", "settings": { "servers": [ { "address": "127.0.0.1", "port": 1835 } ] } }, { "tag": "direct", "protocol": "freedom" } ] }