本教程只是用于能够修改内核的KVM产品,或者内核高于5.6的无法修改内核的产品。unamer -r 可以查看自己的内核。下面所有命令只在Debian/Ubuntu环境下工作。
1
| bash <(wget --no-check-certificate -qO- https://raw.githubusercontent.com/jacyl4/de_GWD/main/server)
|
1
| curl -fsSL git.io/wgcf.sh | sudo bash
|
1
2
3
4
5
6
7
8
9
10
| [Interface]
PrivateKey = mIGbBq8ZLrsgnDM0fwjfd7Qu4cIbjf7ZhvnX3KE8N2o=
Address = 172.16.0.2/32
Address = fd01:5ca1:ab1e:881c:570:1058:47ee:23f1/128
DNS = 9.9.9.10,8.8.8.8,1.1.1.1
MTU = 1280
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = ::/0
Endpoint = 162.159.192.1:2408 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| [Interface]
PrivateKey = GDA8jNe6kr2jXf9DjBtpobXjcFDO8fpa/IZWr3sYpVY=
Address = 172.16.0.2/32
Address = fd01:5ca1:ab1e:8b43:4d28:9678:4fbb:1f61/128
DNS = 2001:4860:4860::8888,2001:4860:4860::8844,8.8.8.8,8.8.4.4
MTU = 1280
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = 0.0.0.0/0
Endpoint = [2606:4700:d0::a29f:c001]:2408
```
### 3.6 移动配置到Wireguard目录
```bash
sudo cp wgcf-profile.conf /etc/wireguard/wgcf.conf |
1
2
3
4
| # IPv4 Only VPS
curl -6 ip.p3terx.com
# IPv6 Only VPS
curl -4 ip.p3terx.com
|
1
| sudo wg-quick down wgcf
|
1
2
3
4
| # 启用守护进程
sudo systemctl start wg-quick@wgcf
# 设置开机启动
sudo systemctl enable wg-quick@wgcf
|
1
| grep -qE '^[ ]*label[ ]*2002::/16[ ]*2' /etc/gai.conf || echo 'label 2002::/16 2' | sudo tee -a /etc/gai.conf
|
1
2
3
4
5
6
7
8
9
| "outbounds": [
{
"sendThrough": "::",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
}
}
]
|
1
2
3
| nano /opt/de_GWD/vtrui/config.json
systemctl restart vtrui
nano /etc/wireguard/wgcf.conf
|
仅支持Debian 10/Ubuntu 20.04系统,根据自己需求选择以下脚本1或者脚本2(有无成功可查看脚本末尾提示)
脚本1:IPV4是WARP分配的IP,IPV6是VPS本地IP
1
| wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp4.sh|bash |
脚本2:IPV4与IPV6都是WARP分配的IP
1
| wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp64.sh|bash |
在VPS上部署WARP来进行流量加密并解锁Netflix和Google验证码(无损实现IPv4/IPv6双栈) | Hiram Home
使用 Cloudflare WARP 给 VPS 服务器免费添加 IPv4 或 IPv6 网络支持 - P3TERX ZONE
Debian Linux VPS 服务器 WireGuard 安装教程 - P3TERX ZONE
关于v2ray在搭建了cloudflare warp的机器上无法按照系统路由流量的解决方法 – LOUKKY的博客
https://github.com/YG-tsj/EUserv-warp