IPV6 WARP突破euserv限制

安装WARP

仅支持Ubuntu 20.04或Debian 10

  • 脚本1:IPV4是WARP分配的IP,IPV6是VPS本地IP

wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp4.sh|bash
1
  • 脚本2:IPV4与IPV6都是WARP分配的IP

wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp64.sh|bash
1

安装v2ray-agent

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
1

更新xray流量配置文件

全局走ipv4

{ 
"outbounds": [
    {
      "tag":"IP6-out",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag":"IP4-out",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIPv4" 
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "IP4-out",
        "domain": [""] 
      },
      {
        "type": "field",
        "outboundTag": "IP6-out",
        "network": "udp,tcp" 
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

相关WARP进程命令

  • 手动临时关闭WARP网络接口

    wg-quick down wgcf
    
    1
  • 手动开启WARP网络接口

    wg-quick up wgcf
    
    1
  • 启动

    systemctl enable wg-quick@wgcf
    
    1
  • 开始

    systemctl start wg-quick@wgcf
    
    1
  • 重启

    systemctl restart wg-quick@wgcf
    
    1
  • 停止

    systemctl stop wg-quick@wgcf
    
    1
  • 关闭

    systemctl disable wg-quick@wgcf
    
    1

学习来源于甬哥的youtube

甬哥的githubopen in new window

MACK-Aopen in new window