白嫖总得来说不好,请不要公开传播,项目热度太高就删库
优选Cloudflare Warp节点并生成用于Clash的WireGuard配置
测试运行环境ubuntu-18.04-standard_18.04.1-1_amd64
- 下载脚本
wget -N -P Warp2Clash https://raw.githubusercontent.com/cmliu/Warp2Clash/main/W2C_start.sh && cd Warp2Clash && chmod +x W2C_start.sh
- 运行脚本
如果你有WARP账户许可证密钥,但是没有PrivateKey
和PublicKey
,可以运行一次以下命令后从Warp2Clash.yaml
中提取记录PrivateKey
和PublicKey
的值
sh W2C_start.sh [WARP账户许可证密钥]
如果您有PrivateKey和PublicKey,可按照以下命令执行
sh W2C_start.sh [PrivateKey] [PublicKey] [IPv6]
参数名 | 一键脚本参数必填项 | 备注(注意!参数必须按顺序填写) |
---|---|---|
PrivateKey | √ | 你的PrivateKey |
PublicKey | √ | 你的PublicKey |
IPv6 | × | 没有可不填 |
- 结果
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
...