/Warp2Clash

优选Cloudflare Warp节点并生成用于Clash.meta的WireGuard配置

Primary LanguageShell

cmliu/Warp2Clash

白嫖总得来说不好,请不要公开传播,项目热度太高就删库

优选Cloudflare Warp节点并生成用于Clash的WireGuard配置

测试运行环境ubuntu-18.04-standard_18.04.1-1_amd64

Usage

  1. 下载脚本
wget -N -P Warp2Clash https://raw.githubusercontent.com/cmliu/Warp2Clash/main/W2C_start.sh && cd Warp2Clash && chmod +x W2C_start.sh
  1. 运行脚本

如果你有WARP账户许可证密钥,但是没有PrivateKeyPublicKey,可以运行一次以下命令后从Warp2Clash.yaml中提取记录PrivateKeyPublicKey的值

sh W2C_start.sh [WARP账户许可证密钥]

如果您有PrivateKey和PublicKey,可按照以下命令执行

sh W2C_start.sh [PrivateKey] [PublicKey] [IPv6]
参数名 一键脚本参数必填项 备注(注意!参数必须按顺序填写)
PrivateKey 你的PrivateKey
PublicKey 你的PublicKey
IPv6 × 没有可不填
  1. 结果Warp2Clash.yaml
...

proxies:
- name: Warp01
  type: wireguard
  server: 162.159.192.139
  port: 859
  ip: 172.16.0.2
  ipv6: 2606:1111:1111:1111:1111:1111:1111:9eae
  private-key: 6FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFI=
  public-key: bmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyo=
  udp: true
  mtu: 1280
  remote-dns-resolve: true
  dns: [ 1.1.1.1, 1.0.0.1 ]

- name: Warp02
  type: wireguard
  server: 162.159.192.196
  port: 934
  ip: 172.16.0.2
  ipv6: 2606:1111:1111:1111:1111:1111:1111:9eae
  private-key: 6FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFI=
  public-key: bmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyo=
  udp: true
  mtu: 1280
  remote-dns-resolve: true
  dns: [ 1.1.1.1, 1.0.0.1 ]

...

- name: Warp64
  type: wireguard
  server: 188.114.98.66
  port: 859
  ip: 172.16.0.2
  ipv6: 2606:1111:1111:1111:1111:1111:1111:9eae
  private-key: 6FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFI=
  public-key: bmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyo=
  udp: true
  mtu: 1280
  remote-dns-resolve: true
  dns: [ 1.1.1.1, 1.0.0.1 ]

proxy-groups:
  - name: ⚖️ 负载均衡.Warp+
    type: load-balance
    url: http://www.google.com/generate_204
    interval: 300
    strategy: round-robin
    proxies:
    - Warp01
    - Warp02

...

    - Warp64

...

感谢

plsy1ViRb3MisakaNo