首先修改DNS,输入以下命令即可。这是为了能访问v4网址。
1
| echo -e "nameserver 2001:67c:2b0::4
\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
|
添加 WARP 双栈全局网络
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| # 自动配置 WARP WireGuard 双栈全局网络(所有出站流量走 WARP 网络) bash <(curl -fsSL git.io/warp.sh) d
# 自动配置 WARP WireGuard IPv4 网络(IPv4 出站流量走 WARP 网络) bash <(curl -fsSL git.io/warp.sh) 4
# 自动配置 WARP WireGuard IPv6 网络(IPv6 出站流量走 WARP 网络) bash <(curl -fsSL git.io/warp.sh) 6
# 查看 WARP 脚本子命令列表 bash <(curl -fsSL git.io/warp.sh) help
# 重启 WARP WireGuard 网络接口 systemctl restart wg-quick@wgcf
# 禁用 WARP WireGuard 网络接口 systemctl disable wg-quick@wgcf --now
|
其它:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| WARP 各大一键脚本
FSCARMEN (https://github.com/fscarmen/warp) : - 首次运行 wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh - 日常维护 warp
P3TERX (https://github.com/P3TERX/warp.sh) : - 首次运行 bash <(curl -fsSL git.io/warp.sh) menu - 日常维护 bash warp.sh
WARP-GO (https://gitlab.com/ProjectWARP/warp-go/-/tree/master/) : - 首次运行 wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh - 日常维护 warp-go
MISAKA (https://gitlab.com/Misaka-blog/warp-script) : - 首次运行 wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/warp.sh && bash warp.sh - 日常维护 bash warp.sh
--------------------
开启效果
无 - IPv4 不支持 IPv6 支持 ~1Gbps 无解锁
IPv4 Only + IPv6 优先(默认) - IPv4 支持 IPv6 支持 优先 IPv6 (~1Gbps), 否则 IPv4 (~200Mbps) 无解锁 IPv4 Only + IPv4 优先 - IPv4 支持 IPv6 支持 优先 IPv4 (~200Mbps), 否则 IPv6 (~1Gbps) WARP解锁
双栈 + IPv6 优先(默认) - IPv4 支持 IPv6 支持 ~200Mbps WARP解锁 (部分) 双栈 + IPv4 优先(默认) - IPv4 支持 IPv6 支持 ~200Mbps WARP解锁
|
来源: https://gitlab.com/fscarmen/warp https://fly-uni.com/network/4637/ https://github.com/P3TERX/warp.sh https://p3terx.com/archives/cloudflare-warp-configuration-script.html https://github.com/veip007/IPV6