LXC IPv6 Only 使用备忘
了解机器
ping -4 google.com ping -6 google.com
查看 tun/tap 是否开启,返回 tun 为开启,否则未开启
ls /dev/net
查看宿主机创建容器数
ls /sys/devices/virtual/block | grep dm | wc -l ls /sys/devices/virtual/block
实现访问 IPv4 功能
2.1 设置 github 代理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
2.2 添加 nat64
echo "nameserver 2a00:1098:2c::1" >> /etc/resolv.conf
2.3 非全局 warp (安装 cloudflare-warp proxy 模式 + proxychains4)
2.4 全局 warp,选择第一项,然后一路回车全部默认即可wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh 4
- 建站
安装 nginx,套 cf 并且打开小云朵同时支持 ipv4 和 ipv6 访问。 - 科学
4.1 xxx-ui
因为只有 ws 才能套 cf 可以 ipv4/ipv6 使用,采用 vless+ws+tls+cf。
入站端口使用 cloudflare 默认代理的网络端口,如 8443、2052
4.2 hy2
4.3 sba(sing-box + argo) 解决 debain11上 ssh 连接慢问题
systemctl mask systemd-logind pam-auth-update
取消 Register user sessions in the systemd control group hierarchy 的选中
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭