无公网v4接入IPv6教程
如题,最近有点无聊,折腾一下,先上成果 起因,三大运营商出口接近饱和,国际访问体验极差 于是想起了有个东西叫6in4,然后又想起了这东西没加密,然后双想起了匹配到某些sni信息会被阻断6in4 tunnel(憋住别问 顺带叒想起了zerotier可以打成二层组网,所以才有了这篇教程 准备工作 需要一台境外的vps、zerotier账号以及HE IPv6 tunnelbroker(如果vps有/48的IPv6可忽略)本次演示用的是腾讯云的轻量服务器(124.156及101.32),本地运营商为中国电信AS4134 关于选择腾讯轻量的原因是便宜还大碗,质量相对也不错(此处贴出各区情况) 相关评测:https://luotianyi.vc/4706.html 现成的评测那么多直接引用多香啊,懒得自己写了(逃适合自己的vps才是最好的,同时因为zerotier组网的特殊性需要优秀的NAT type以及对udp不能qos得太惨(希望移动没事 软件地址:https://github.com/HMBSbige/NatTypeTester/releases GitHub加速:https://github.intel-2333.workers.dev/ ①在/etc/sysctl.conf中检查是否添加 net.ipv4.conf.all.forwarding = 1 net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 0 net.ipv6.conf.default.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.proxy_ndp = 1 net.ipv6.conf.all.accept_ra = 2 添加并确认无误后执行 sysctl -p ②登陆https://tunnelbroker.net/ 并点击Create Regular Tunnel创建隧道在IPv4 Endpoint (Your side)处填入你VPS的IPv4或域名地址地址选择离你VPS最近的地方并检测延迟,此处使用HE的HK接入点 PING 216.218.221.6 (216.218.221.6) 56(84) bytes of data. 64 bytes from 216.218.221.6: icmp_seq=1 ttl=57 time=2.03 ms 64 bytes from 216.218.221.6: icmp_seq=2 ttl=57 time=1.86 ms 64 bytes from 216.218.221.6: icmp_seq=3 ttl=57 time=1.94 ms 64 bytes from 216.218.221.6: icmp_seq=4 ttl=57 time=1.96 ms 64 bytes from 216.218.221.6: icmp_seq=5 ttl=57 time=1.89 ms 64 bytes from 216.218.221.6: icmp_seq=6 ttl=57 time=1.91 ms 64 bytes from 216.218.221.6: icmp_seq=7 ttl=57 time=1.88 ms 64 bytes from 216.218.221.6: icmp_seq=8 ttl=57 time=2.01 ms 64 bytes from 216.218.221.6: icmp_seq=9 ttl=57 time=1.95 ms 确认无误之后即可创建 创建完成后点击 Routed /48: 的 Assign /48 申请/48地址并记录(后面要用) 然后打开example configurations并选择你的系统 我是腾讯的轻量,系统是centos7,并无DD,我选择Linux-net-tools(sit tunnel),复制后ssh执行即可 唔,我知道肯定有些人想用route,记得local填写v4 nat地址(输入ip a中的eth0即可找到) 接入完成后 ping dns.google -6 确认是否正常工作 64 […]