阿里云服务器如何设置IPV6经过appstore的审核
苹果上架要求:要求支持IPV6only(由于阿里云主机没有IPV6only)html
确认IPV6是否开启:vim
方式1:使用ifconfig查看本身的IP地址是否含有IPv6地址。服务器
方式2.查看服务监听的IP中是否有IPv6格式的地址。(netstat -tuln)app
开启IPV6:post
vim /etc/sysctl.conf测试
vim /etc/modprobe.d/disable_ipv6.confgoogle
vim /etc/sysconfig/network
至此ipv6的服务器端支持已经完成,重启服务器测试是否支持ipv6,重启后, ifconfig查看ipv6的信息,有看到有关IPV6的输出就能够阿里云
添加ipv6隧道:url
1. 注册Tunnel brokerspa
https://www.tunnelbroker.net/
注册很容易,就不讲了,注册须要邮箱验证,,gmail、163能收获得认证邮件,qq仍是同样收不到
2.建立通道“Create Regular Tunnel”
填写云服务器ip以及选择默认的隧道节点,点击Create Tunnel建立。填写ip都,若是出现“IP is a potential tunnel endpoint.”则证实能够添加ipv6隧道,通常隧道节点系统已经默认分配,能够手动选择,你们能够在本身的云服务器上分别ping一下这些ip,选时延低的。
3.建立ipv6隧道及路由
到下一页面切换到Example configurations选项卡,若是你的VPS是centOS/Debian这些常见Linux的话,下拉菜单选择Linux-route2,出现了设置的命令,复制到本身的云服务器上运行。
4.测试ipv6
添加ipv6的dns服务器,在最后添加nameserver 2001:4860:4860::8888,nameserver 2001:4860:4860::8844谷歌的ipv6 dns服务器
# vim /etc/resolv.conf options timeout:1 attempts:1 rotate nameserver x.x.x.x nameserver x.x.x.x nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844
# ping6 -c 5 ipv6.google.com PING ipv6.google.com(tsa03s01-in-x0e.1e100.net) 56 data bytes 64 bytes from tsa03s01-in-x0e.1e100.net: icmp_seq=1 ttl=55 time=25.5 ms 64 bytes from tsa03s01-in-x0e.1e100.net: icmp_seq=2 ttl=55 time=25.5 ms 64 bytes from tsa03s01-in-x0e.1e100.net: icmp_seq=3 ttl=55 time=33.1 ms 64 bytes from tsa03s01-in-x0e.1e100.net: icmp_seq=4 ttl=55 time=25.5 ms 64 bytes from tsa03s01-in-x0e.1e100.net: icmp_seq=5 ttl=55 time=25.4 ms --- ipv6.google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4031ms rtt min/avg/max/mdev = 25.473/27.040/33.180/3.073 ms
阿里云服务配置
代理配置好以后服务器中执行ifconfig命令,找到he-ipv6虚拟网卡,找到scope为Global 的ipv6地址,在阿里云后台配置AAAA记录为上面提到的ipv6地址