只有IPv6的VPS连通IPV4
无ipv4纯ipv6先编辑/etc/resolv.conf改成DNS64地址
nameserver 2001:67c:2b0::4
nameserver 2001:67c:27e4::64
然后执行
chattr +i /etc/resolv.conf
service systemd-resolved restart
IPV4免费获得IPV6
只有IPV4的VPS通过Hurricane Electric Internet Services免费获得IPV6。
Hurricane Electric Free IPv6 Tunnel Broker
按提示输入公网IPV4,选择地区区域,获得IPV6。
选择自己VPS的系统对应版本按提示附加上去 enjoy
Cloudflare WARP 一键安装脚本
转载自项目地址、Cloudflare WARP 一键安装脚本 使用教程
- 无论 VPS 是 IPv4 还是 IPv6 又或都有,添加 WARP WireGuard 双栈全局网络,直接使用以下 WARP 脚本命令一把梭:
# 自动配置 WARP WireGuard 双栈全局网络
bash <(curl -fsSL git.io/warp.sh) d
- 添加或更改 IPv4/IPv6 网络中的一个出口走 WARP WireGuard 网络,使用以下 WARP 脚本命令一把梭:
# 自动配置 WARP WireGuard IPv4 网络
bash <(curl -fsSL git.io/warp.sh) 4
# 自动配置 WARP WireGuard IPv6 网络
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