纯IPV6服务器使用WARP

一、使用NAT64

NAT64可以使IPV6服务器,有访问IPV4资源的能力

echo -e "nameserver 2a01:4f8:c2c:123f::1\nnameserver 2a01:4f9:c010:3f02::1" | tee /etc/resolv.conf

二. 安装使用WARP

根据系统安装 Cloudflare WARP软件包

实例Debian12

安装warp

apt install gpg -y
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
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
sudo apt-get update && sudo apt-get install cloudflare-warp

注册warp

warp-cli registration new
warp-cli tunnel ip add-range ::/0

开启warp

warp-cli connect
curl -4 ipinfo.io
THE END