IOS app backend server to do,It needs to be done to support the ipv6,although 6 Almost do not use in China,Unfortunately Apple is now requiring all shelves app needs to support pure ipv6 network,so,At least our server to be up and running in under an environment ipv6。
Since most domestic server can not provide ipv6 network,So we can only find their own tunnel,Now it is used more widelyThis one,I also used their service,It is free,Registration look like。
After registration,Select the lower left "Create Regular Tunnel”,Creating a common tunnel,Natural ip address is outside the network address of your server,Create a place to choose the nearest "Hong Kong",The speed will be better。
Service-Terminal
Now,Back to configure your server: we /etc/sysctl.conf ,Locate the following three instead 0:
1 2 3 |
net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 0 |
Then edit /etc/network/interfaces ,The following information is added at the end:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
auto he-ipv6 iface he-ipv6 inet6 v4tunnel address <IPV6>::2 netmask 64 remote <Tunnel 的 Server IPv4 Address> local <内网 IPv4 地址> endpoint any ttl 255 gateway <IPv6>::1 up ip -6 route add 2000::/3 via ::<HE 的 Server IPv4 Address> dev he-ipv6 up ip -6 addr add <IPv6>::1:1/128 dev he-ipv6 up ip -6 addr add <IPv6>::2:1/128 dev he-ipv6 down ip -6 route flush dev he-ipv6 |
note,local field is ipv4 address of your internal network,For example, I was Ali cloud server,Then that Ali cloud network address otherwise unable to ping。
Where there<IPv6> You need to replace yourself as you just apply the Tunnel Server IPv6 Address,But does not include final ::1/64 。server and client are the same so we fill in just fine。
Configured server can restart after the,After restarting use ifup he-IPv6 Confirm tunnel start。
Then you can test the,use ping6 IPv6.google.with To test the configuration is correct。
Configuration parsing
In the HE site,Ns resolves to configure your server,For example, I use cloudxns,So I put the address to resolve cloudxns The proxy address。
Ns then log in to your website,Add to your server YYYY Resolve,Ipv6 address to your address,To resolve a domain with the same resolve your v4,Which resolved with which,For example, I will use the www,Then add www,It is noteworthy that the current domestic ns providers offer a special additional foreign channels,So you might have to default in addition to the domestic foreign,What also add "Overseas default"、"The United States default"、"Google default" like a lot。Add a few more,After all, Apple's father in the United States。
Wait for the configuration to take effect just fine,Then we can use the dig tool to test - here be careful not to use the default dns server cloud Ali,You may simply not find。
1 |
dig your.domain.com AAAA @8.8.8.8 |
Use Google's public DNS test,If you see the contents of your record v6 address,It is ok,,Now you can try to go to those sites in the test online ping6。
配置 nginx
At last,You need to let nginx default support v6,Add in a corresponding domain name on your monitor:
1 2 3 4 5 |
listen 443 ssl; listen [::]:443 ssl; listen 80 default ; listen [::]:80 default; |
Use the command nginx -t Confirm no problem, then,You can restart the service。
This time,Your website will be able to support ipv6 or api access and tested。
Original article written by LogStudio:R0uter's Blog » Adding to the server ipv6 support through Apple's review
Reproduced Please keep the source and description link:https://www.logcg.com/archives/2742.html
It looks very technical。。。。
what,Server does not support ipv6 network can also da ......
Apple will offer NAT64 and DNS64,So long as the server is not accessible directly through the ipv4 address,Ipv4 and does not depend on the specific things thousand million ......
Now the question is very embarrassing,Screenshot of Apple because of an error to load content ............ half,If not load,Certainly all get out,But now ...... we own half the load test method Apple are normal,Fast mad。
You mean as long as no ip address access, Apple audits can access mean it to be