准备:我使用的是CentOS7搭建的,debian理论也可以,请自行尝试

1.有ipv6环境的直接ssh即可,没有的话请使用HAX的ipv6 to ipv4服务

地址:https://hax.co.id

 

2.设置dns使得ipv6能访问并下载ipv4的资源,尤其是github,网上给出的


这种方法并不管用,请不要再瞎尝试,不可行!直接用如下nameserver!

/mv /etc/resolv.conf /etc/resolv.conf.bak
echo -e "nameserver 2a01:4f9:c010:3f02::1\nnameserver
2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1" > /etc/resolv.conf

 

3.完成之后,安装一些必要的工具

yum install -y vim net-tools wget curl git

 

4.运行来自GitHub大神的脚本,这一步是给vps添加cloudflare的IPv4地址,虽然我现在还没明白具体干啥用,但是装就完了

GitHub-warp:https://github.com/fscarmen/warp

wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh [option] [lisence]

首次运行

wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh [option] [lisence]

再次运行

warp [option] [lisence]