最新VPS促销优惠活动: https://p3terx.com/archives/cheap-vps-racknerd.html
- 更换vps邮箱账户
- 更换vps
- 学习了解cloudflare
购买域名,绑定域名和
VPS IP[ping通域名,确认ip关联成功]VPS系统选择
建议首选 Debian ,稳!
安装常用软件
apt update apt install mc vim sudo aptitude ufw curl获取 Cloudflare API Token (应对x-ui最新脚本,0.3.4.4 版本跳过这一步,Cloudflare 待研究)
- 登录 Cloudflare 仪表盘 > 我的资料 > API 令牌 > 创建令牌。
- 选择“编辑区域 DNS”模板,权限:Zone: DNS: Edit;区域:你的域名。
- 生成 Token(格式:Bearer xxxxxxxxxxxxxxxxxx),记录下来。
X-UI 脚本(导出的pdf格式下注意该命令是否完全一致)
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) 0.3.4.4X-UI是一个基于xray-core为核心的简易代理搭建工具,前端使用Vue框架,后端使用Golang编写。 它的目的是为了帮助各位更好地去搭建属于自己的代理服务,并且能够通过Telegram bot进行便捷地监控与管理。
:flushed: X-UI 脚本 steps:
输入x-ui
输入15 -> 安装bbr
在TCP网络通信中,BBR(Bottleneck Bandwidth and Round-trip propagation time) 是一种由Google开发的拥塞控制算法,旨在优化网络传输性能。它的主要作用是提高网络的吞吐量、降低延迟,并更高效地利用网络带宽。
输入16> 为域名申请SSL证书 -> SSL证书安装目录为/root/cert目录
参照: https://github.com/chika0801/Xray-install/blob/main/acme.md
输入7 -> 根据面板信息,ip+端口 登录
配置面板域名证书(
先配置面板的证书,然后使用https访问,后续节点会自动填入):/root/cert/fullchain.cer
/root/cert/域名.key
[
ping通域名,确认ip关联成功]VPS更改x-ui重置登录密码为admin,使用https域名访问x-ui面板,修改登录密码
配置warp
Warp 最常见的指代是 Cloudflare 公司推出的 Cloudflare WARP 服务,这是一种基于 WireGuard 协议的 VPN-like 工具,旨在提升互联网连接的安全性、速度和隐私保护。
https://github.com/P3TERX/warp.sh
https://p3terx.com/archives/cloudflare-warp-configuration-script.html
添加 WARP WireGuard 双栈全局网络,直接使用以下 WARP 脚本命令一把梭
# 自动配置 WARP WireGuard 双栈全局网络(所有出站流量走 WARP 网络) bash <(curl -fsSL git.io/warp.sh) d其它相关命令
配置为双栈全局代理,有可能会出现 vps 无法 ping 通外网的问题,有可能是 dns 或者是 host 受到了影响,不需要复杂的操作,直接运行 systemctl restart wg-quick@wgcf
# 查看 WARP 脚本子命令列表 bash <(curl -fsSL git.io/warp.sh) help # 重启 WARP WireGuard 网络接口 systemctl restart wg-quick@wgcf # 禁用 WARP WireGuard 网络接口 systemctl disable wg-quick@wgcf --now