国内ipv6 vps必备脚本指南(纯整合,感谢各位开发者)

国内ipv6 vps(包括ipv4 nat vps),一般都有各种限制,导致常用脚本无法安装

简单整理个思路,如有不足欢迎补充

1. 换源

参考:https://gitee.com/renjizou/LinuxMirrors?skip_mobile=true
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
脚本用不了,可以手动换
目录:/etc/apt/sources.list
清华源:https://mirrors.tuna.tsinghua.edu.cn/help/debian/

2. github

参考:https://www.nodeseek.com/post-57839-1

cat >> /etc/hosts << EOF
# https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
EOF

3. warp

参考:https://www.nodeseek.com/post-23836-1
作者提供两个方案,都可以试一下,这里用warp-go脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh
然后测试 ping google.com

4. gost

参考:https://github.com/KANIKIG/Multi-EasyGost
wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh
不用选择国内镜像,已经套了warp,正常安装

5. 探针

已经套了warp,正常安装

一般而言,套了warp速度就还可以,如果仍然很慢,可以中止脚本、重新安装,或重启再试

纯整合,感谢各位开发者!