安装warp

通过warp可以让你的服务器走cloudflare的ip作为出口,不仅可以增加服务器的安全性,减少ip暴露,防止服务器IP被封锁,还能解锁一些流媒体的服务,不过由于滥用,wireguard获取warp接口比以前要困难许多了,如果你的机器地区未被影响,也可以尝试获取双栈接口,ipv4也套上warp

WARP WireGuard 网络接口模式

TIPS: 因部分用户的滥用行,官方已限制部分地区使用原版 Wire­Guard 连接 WARP 网络。比如中国香港,其它地区请自测。

# 自动配置 WARP WireGuard IPv6 网络(IPv6 出站流量走 WARP 网络)
bash <(curl -fsSL git.io/warp.sh) 6

WARP 官方 Linux 客户端 SOCKS5 代理模式

# 自动配置 WARP 官方客户端 SOCKS5 代理
bash <(curl -fsSL git.io/warp.sh) s5

#卸载
bash <(curl -fsSL git.io/warp.sh) uninstall

配置分流

通过指定标记分流实现指定目标走ipv6/warp,普通流量走ipv4/源服务器

xray

#路由部分
{ 
            { // 网站分流流媒体等需要原生ip的网站走warp
                "domain": [
                    "geosite:google",
                    "geosite:netflix",
                    "geosite:openai"
                ],
                "outboundTag": "WARP_out",
                "type": "field"
            },
            { // IP 分流。指定 IP 走 ipv6
                "ip": [
                    "geoip:cn"
                ],
                "outboundTag": "WARP_out",
                "type": "field"
            }
#出站部分
{
  "tag": "WARP_out",
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "UseIPv6"//若双栈可选择使用UseIP
  }
}