Giter Site home page Giter Site logo

warp2clash's Introduction

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

warp2clash's People

Contributors

cmliu avatar plsy1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.