IPv6隧道技术轻松通过苹果ipv6-only审核

如果使用阿里云的服务器并且域名备案接入商是阿里就购买阿里云提供的ipv6地址(通过ipv6转ipv4

以下是通过https://www.tunnelbroker.net提供的ipv6隧道方法

centos7开启ipv6支持

vim /etc/modprobe.d/disable_ipv6.conf

1
options ipv6 disable=0

vim /etc/sysconfig/networ

1
NETWORKING_IPV6=yes

vim /etc/sysctl.conf

1
2
3
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

配置完最好重启一下
reboot

注册账号

https://www.tunnelbroker.net注册账号
创建一个ipv6 tunnel
ipv6
monitoring
这centos7选择linux-net-tools按照命令执行完查看
添加dns

1
2
3
cat /etc/resolv.conf 
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

ping6 ipv6.google.com
nginx转发配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
listen 80;
listen [::]:80;
server_name test.idcsec.com;
<!--more-->
#charset koi8-r;

# access_log logs/wangting.access.log main;

location / {
root html;
index index index.html index.htm;
proxy_pass http://test.idcsec.com.com;
proxy_redirect off;
# 后端的Web服务器可以通过X-Forwarded-For获取用户真实IP
proxy_set_header Host "test.idcsec.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
}
}

域名添加4A解析
验证
http://ipv6-test.com/validate.php
页面代理服务ipv6网站www.ipv6proxy.net/index.php