# 科学上网-Cloudflare-Warp

## 安装

下载 `Warp` 客户端 [Warp](https://one.one.one.one/)

1. `windows` 直接下载 `msi` 文件安装: 需要结合下载 `Warp` 工具包初始化 (已备份到比特球)
2. `linux`

以下是 [Ubuntu如何安装Warp-Cli](https://pkg.cloudflareclient.com/#ubuntu)

```shell
# Add cloudflare gpg key
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

# Add this repo to your apt repositories
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

# Install
sudo apt-get update && sudo apt-get install cloudflare-warp
```

安装 `warp-cli` 后需要配合 `gui` 来使用 [warp-cloudflare-gui](https://github.com/mrmoein/warp-cloudflare-gui)

::: code-group

```shell
# warp-cli 注册
warp-cli register

# 克隆项目
git clone https://github.com/mrmoein/warp-cloudflare-gui

# 进入目录
cd warp-cloudflare-gui

# 安装依赖，如果没有 pip3 ，需要先执行 sudo apt install python3-pip
python3 install.py

# 运行
sudo chmod +x ~/.local/share/applications/warp-gui.desktop

# 运行软件,登录 Cloudflare Zero Trust帐号即可
```

::: warning 注意 访问 `pkg.cloudflareclient.com` 需要翻墙, 搭在国外 `v2ray` 梯子，使用移动速度很慢，换电信速度就很快 :::

## 升级Warp+

下载 `telegram` 搜索关键词 `warp + bot` 获取 `key`

然后 `warp` 客户端 偏好设置 -> 账号 -> 使用其他秘钥

更新后显示余额 `24pb` 的流量

## 升级Warp Trust账户

1. 登录 `cloudflare`
2. 右侧点击 `zero trust`

   ![点击zero trust](https://github.com/ougege/blog/blob/master/Images/Wall/科学上网-Cloudflare-Warp/step_1.png)
3. 进入 `settings`

   ![进入settings](https://github.com/ougege/blog/blob/master/Images/Wall/科学上网-Cloudflare-Warp/step_2.png)
4. 选择 `warp client`

   ![选择warp client](https://github.com/ougege/blog/blob/master/Images/Wall/科学上网-Cloudflare-Warp/step_3.jpg)
5. 选择免费计划

   ![free plan](https://github.com/ougege/blog/blob/master/Images/Wall/科学上网-Cloudflare-Warp/step_4.jpg)
6. 接下来会提示添加支付方式，可以使用 `paypal` 或者自行添加 `visa` 或 `master` 卡
7. 再然后 `settings` -> `warp client` -> `Device enrollment` -> `manage` 增加 `rule` (选择符合条件的邮箱后缀)
8. 最后在 `warp` 客户端登录 `zero trust` 账号

::: warning 注意 如果忘记团队名

可以在 `settings` -> `custom pages` 获取团队名称 :::

## 一直连接中

表示你的本地ip地址被墙了，需要换一个优选 `ip` 后重新连接

::: code-group

```shell
# windows 下载 Warp 工具 （已上传到比特球)

# 解压后执行一键脚本替换优选 `ip`

# 备选方案参考 https://github.com/yonggekkk/warp-yg
```

```shell
# linux 下使用脚本获取优选ip
curl -sSL https://gitlab.com/rwkgyg/CFwarp/raw/main/point/endip.sh -o endip.sh

sudo chmod +x endip.sh && ./endip.sh

# 打开result.csv,复制第一行对应的ip

# 设置warp-cli 优选ip
sudo warp-cli tunnel endpoint set 162.159.192.152:891
```

:::

::: code-group ::: warning 注意 重置优选 `ip`

```shell
sudo warp-cli tunnel endpoint reset
```

:::

## 参考

1. [Warp](https://one.one.one.one/)
2. [合法免费高速VPN环境搭建——Warp 1.1.1.1](https://blog.csdn.net/luoqiaoliang/article/details/138466429)
3. [WARP科学上网全攻略：详细教程及账号升级操作解析](https://blog.ilue.pp.ua/archives/warpke-xue-shang-wang-quan-gong-lue-xiang-xi-jiao-cheng-ji-zhang-hao-sheng-ji-cao-zuo-jie-xi)
4. [Cloudflare WARP 使用教程，ip优选，解决WARP连接问题](https://zhpengfei.com/cloudflare-warp-setting-ip-cf_dns_lookup_failure/)
5. [Cloudflare WARP 优选ip](https://playlab.eu.org/archives/warp-selectip)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ougege.gitbook.io/blog/docs/articles/wall/ke-xue-shang-wang-cloudflarewarp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
