1.打开https://tunnelbroker.net/,选注册

填写注册信息,如下图所示;

登录上图注册的邮箱,会收到一封注册的邮件,打开邮件中的链接,实现用户的注册;

用所创建的帐号登录,选择“Create Regular Tunnel”,

在下图中输入本端遂道的地址,选择香港的服务器,选“Create Tunnel”

查看已经创建的遂道,先选“Transit”,再选“Free IPv6 Tunnel”,就可以显示已经创建的遂道;如下图所示;


点击相关的遂道,就会显示遂道的相关信息,如下图所示。

选择“Example Configurations”,并选择相关的操作系统,按照提示对网络进行配置。


netsh interface teredo set state disabled

netsh interface ipv6 add v6v4tunnel interface=IP6Tunnel XX.XX.XX.XXXXX.XXX.XXX.XX

netsh interface ipv6 add address IP6Tunnel 2001:470:XX:XX::X

netsh interface ipv6 add route ::/0 IP6Tunnel 2001:470:XX:XXX::X

netsh interface ipv6>delete interface "IP6Tunnel"删除遂道接口

netsh interface ipv6>show interface显示IPV6接口

netsh interface ipv6 reset

配到这里ping -6对方的IPV6地址应该是通的

对nginx进行配置:

关键的配置如下:

server {

listen81 default;

listen [2001:XXX:XXX:XXX::2]:81 default;

location / {

proxy_pass http://172.XX.XX.XX;

启用nginx

这一步如果成功,就可以在本机访问自已的IPV6地址:

http://[xxxx:xxxxx:xxxx::68]:81

在DNS中添加AAAA记录

登录网站http://ipv6-test.com/validate.php,进行测试