蘋果上架要求:要求支持IPV6only(因為阿里云主機沒有IPV6only)
解決方法一:
確認IPV6是否開啟:
方式1:使用ifconfig查看自己的IP地址是否含有IPv6地址。
方式2.查看服務監聽的IP中是否有IPv6格式的地址。(netstat -tuln)
開啟IPV6:
vim /etc/sysctl.conf
vim /etc/modprobe.d/disable_ipv6.conf
vim /etc/sysconfig/network
至此ipv6的服務器端支持已經完成,重啟服務器測試是否支持ipv6,重啟后, ifconfig查看ipv6的信息,有看到有關IPV6的輸出就可以
添加ipv6隧道:
- 注冊Tunnel broker
https://www.tunnelbroker.net/注冊很容易,就不講了,注冊需要郵箱驗證,gmail、163能收得到認證郵件,qq還是一樣收不到
2.創建通道“Create Regular Tunnel”
填寫云服務器ip以及選擇默認的隧道節點,點擊Create Tunnel創建。填寫ip都,如果出現“IP is a potential tunnel endpoint.”則證明可以添加ipv6隧道,一般隧道節點系統已經默認分配,可以手動選擇,大家可以在自己的云服務器上分別ping一下這些ip,選時延低的。
appstore審核
3.創建ipv6隧道及路由
到下一頁面切換到Example configurations選項卡,如果你的VPS是centOS/Debian這些常見Linux的話,下拉菜單選擇Linux-route2,出現了設置的命令,復制到自己的云服務器上運行。
appstore審核
4.測試ipv6
appstore審核
添加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地址
解決方法二:
您通過如下工具,將您的ipv4 公網ip地址轉換成ipv6地址,域名解析解析個AAAA記錄,指向到這個ipv6地址就可以了。轉換工具如下 :http://www.subnetonline.com/pages/subnet-calculators/ipv4-to-ipv6-converter.php域名解析,可以參考如下教程:https://support.dnspod.cn/Kb/showarticle/tsid/36/
解決方法三:
您可以搭建一個隧道解決該問題。您可以參考下面鏈接:https://bbs.aliyun.com/read/299254.html