{"id":188467,"date":"2020-11-09T04:14:33","date_gmt":"2020-11-08T20:14:33","guid":{"rendered":"http:\/\/4563.org\/?p=188467"},"modified":"2020-11-09T04:14:33","modified_gmt":"2020-11-08T20:14:33","slug":"%e4%bd%bf%e7%94%a8-zerotier-%e6%8e%a5%e5%85%a5-ipv6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=188467","title":{"rendered":"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4f7f\u7528 zerotier \u63a5\u5165 IPv6               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : INTEL2333 <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u6700\u8fd1\u6709\u70b9\u65e0\u804a\uff0c\u6298\u817e\u4e00\u4e0b\uff0c\u5148\u4e0a\u6210\u679c <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf446260e8.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf446f21a2.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/><\/p>\n<p>==================================<\/p>\n<p>\u8d77\u56e0\uff0c\u4e09\u5927\u8fd0\u8425\u5546\u51fa\u53e3\u63a5\u8fd1\u9971\u548c\uff0c\u56fd\u9645\u8bbf\u95ee\u4f53\u9a8c\u6781\u5dee <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf4472c049.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> \u4e8e\u662f\u60f3\u8d77\u4e86\u6709\u4e2a\u4e1c\u897f\u53eb 6in4\uff0c\u7136\u540e\u53c8\u60f3\u8d77\u4e86\u8fd9\u4e1c\u897f\u6ca1\u52a0\u5bc6\uff0c\u7136\u540e\u53cc\u60f3\u8d77\u4e86\u5339\u914d\u5230\u67d0\u4e9b sni \u4fe1\u606f\u4f1a\u88ab\u963b\u65ad 6in4 tunnel<\/p>\n<p>\u987a\u5e26\u53d2\u60f3\u8d77\u4e86 zerotier \u53ef\u4ee5\u4e8c\u5c42\u7ec4\u7f51\uff0c\u6240\u4ee5\u624d\u6709\u4e86\u8fd9\u7bc7\u6559\u7a0b<\/p>\n<p>==================================<\/p>\n<p>\u51c6\u5907\u5de5\u4f5c\uff0c\u9700\u8981\u4e00\u53f0\u5883\u5916\u7684 vps \u3001zerotier \u8d26\u53f7\u4ee5\u53ca HE IPv6 tunnelbroker \uff08\u5982\u679c vps \u6709 \/48 \u7684 IPv6 \u53ef\u5ffd\u7565\uff09<\/p>\n<p>\u672c\u6b21\u6f14\u793a\u7528\u7684\u662f\u817e\u8baf\u4e91\u7684\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668\uff08 124.156 \u53ca 101.32 \uff09\uff0c\u672c\u5730\u8fd0\u8425\u5546\u4e3a\u4e2d\u56fd\u7535\u4fe1 AS4134<\/p>\n<p>\u5173\u4e8e\u9009\u62e9\u817e\u8baf\u8f7b\u91cf\u7ea7\u7684\u539f\u56e0\u662f\u4fbf\u5b9c\u8fd8\u5927\u7897\uff0c\u8d28\u91cf\u76f8\u5bf9\u4e5f\u4e0d\u9519\uff0c\u6211\u8fd9 udping \u5ef6\u8fdf\u7a33\u5b9a 8.6ms \u9ad8\u5cf0\u4e22\u5305 1.4%\uff08\u6b64\u5904\u8d34\u51fa\u5404\u533a\u60c5\u51b5\uff09 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf44752c95.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> \u76f8\u5173\u8bc4\u6d4b\uff1a https:\/\/luotianyi.vc\/4706.html \u73b0\u6210\u7684\u8bc4\u6d4b\u90a3\u4e48\u591a\u76f4\u63a5\u5f15\u7528\u591a\u9999\u554a\uff0c\u61d2\u5f97\u81ea\u5df1\u5199\u4e86\uff08\u9003<\/p>\n<p>\u9002\u5408\u81ea\u5df1\u7684 vps \u624d\u662f\u6700\u597d\u7684\uff0c\u540c\u65f6\u56e0\u4e3a zerotier \u7ec4\u7f51\u7684\u7279\u6b8a\u6027\u9700\u8981\u4f18\u79c0\u7684 NAT type \u4ee5\u53ca\u5bf9 udp \u4e0d\u80fd qos \u5f97\u592a\u60e8\uff08\u5e0c\u671b\u79fb\u52a8\u6ca1\u4e8b <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf4476eae3.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> \u8f6f\u4ef6\u5730\u5740\uff1a https:\/\/github.com\/HMBSbige\/NatTypeTester\/releases<\/p>\n<p>GitHub \u52a0\u901f\uff1a https:\/\/github.intel-2333.workers.dev\/<\/p>\n<p>==================================<\/p>\n<p>\u2460\u5728 \/etc\/sysctl.conf \u4e2d\u68c0\u67e5\u662f\u5426\u6dfb\u52a0<\/p>\n<p>net.ipv4.conf.all.forwarding = 1<\/p>\n<p>net.ipv6.conf.all.disable_ipv6 = 0<\/p>\n<p>net.ipv6.conf.default.disable_ipv6 = 0<\/p>\n<p>net.ipv6.conf.lo.disable_ipv6 = 0<\/p>\n<p>net.ipv6.conf.default.forwarding = 1<\/p>\n<p>net.ipv6.conf.all.forwarding = 1<\/p>\n<p>net.ipv6.conf.all.proxy_ndp = 1<\/p>\n<p>net.ipv6.conf.all.accept_ra = 2<\/p>\n<p>\u6dfb\u52a0\u5e76\u786e\u8ba4\u65e0\u8bef\u540e\u6267\u884c sysctl -p<\/p>\n<p>==================================<\/p>\n<p>\u2461\u767b\u9646 https:\/\/tunnelbroker.net\/ \u5e76\u70b9\u51fb Create Regular Tunnel \u521b\u5efa\u96a7\u9053<\/p>\n<p>\u5728 IPv4 Endpoint (Your side)\u5904\u586b\u5165\u4f60 VPS \u7684 IPv4 \u6216\u57df\u540d\u5730\u5740<\/p>\n<p>\u5730\u5740\u9009\u62e9\u79bb\u4f60 VPS \u6700\u8fd1\u7684\u5730\u65b9\u5e76\u68c0\u6d4b\u5ef6\u8fdf\uff0c\u6b64\u5904\u4f7f\u7528 HE \u7684 HK \u63a5\u5165\u70b9,\u786e\u8ba4\u65e0\u8bef\u4e4b\u540e\u5373\u53ef\u521b\u5efa<\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u540e\u70b9\u51fb Routed \/48: \u7684 Assign \/48 \u7533\u8bf7 \/48 \u5730\u5740\u5e76\u8bb0\u5f55\uff08\u540e\u9762\u8981\u7528\uff09<\/p>\n<p>\u7136\u540e\u6253\u5f00 example configurations \u5e76\u9009\u62e9\u4f60\u7684\u7cfb\u7edf<\/p>\n<p>\u6211\u662f\u817e\u8baf\u8f7b\u91cf\u7ea7\u7684 centos7\uff0c\u5e76\u65e0 DD\uff0c\u6211\u9009\u62e9 Linux-net-tools(sit tunnel)\uff0c\u590d\u5236\u540e ssh \u6267\u884c\u5373\u53ef<\/p>\n<p>\u5514\uff0c\u6211\u77e5\u9053\u80af\u5b9a\u6709\u4e9b\u4eba\u60f3\u7528 route\uff0c\u8bb0\u5f97 local \u586b\u5199 v4 nat \u5730\u5740(\u8f93\u5165 ip a \u4e2d\u7684 eth0 \u5373\u53ef\u627e\u5230)<\/p>\n<p>\u63a5\u5165\u5b8c\u6210\u540e ping dns.google -6 \u786e\u8ba4\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/p>\n<p>\u7531\u4e8e\u91cd\u542f\u4f1a\u5931\u6548\uff0c\u5efa\u8bae\u6dfb\u52a0\u8fdb \/etc\/rc.local \u8fdb\u884c\u5f00\u673a\u81ea\u542f<\/p>\n<p>debian \u4ee5\u53ca ubuntu \u5219\u6dfb\u52a0\u8fdb \/etc\/network\/interfaces \u5e76 \/etc\/init.d\/networking restart<\/p>\n<p>==================================<\/p>\n<p>\u2462\u5728 vps \u4e0a\u5b89\u88c5 zerotier<\/p>\n<p>curl -s https:\/\/install.zerotier.com\/ | sudo bash<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u8fdb\u5165 https:\/\/my.zerotier.com\/ \u521b\u5efa\u7f51\u7edc<\/p>\n<p>\u627e\u5230\u4f60\u7684 Network ID \u5e76\u5728 VPS \u4e0a\u6267\u884c<\/p>\n<p>zerotier-cli set \u6b64\u5904\u66ff\u6362\u4f60\u81ea\u5df1\u7684 ID allowGlobal=true<\/p>\n<p>\u6253\u52fe\u8fd9\u91cc\u7684 RFC4193<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf44789f43.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/><\/p>\n<p>\u7531\u4e8e\u662f PRIVATE \u7f51\u7edc\uff0c\u4f60\u9700\u8981\u624b\u52a8\u6253\u52fe\u4f60\u81ea\u5df1\u7684 VPS \u5e76\u8bb0\u5f55 fd \u5f00\u5934\u7684\u90a3\u4e32 ipv6<\/p>\n<p>\u5728 Advanced \u7684 Managed Routes \u5904\u6dfb\u52a0\u4e24\u4e2a\u8def\u7531\u5e76 submit\uff0c\u5206\u522b\u662f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf447b2c0a.jpg\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf447c9859.jpg\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> \u7136\u540e\u786e\u8ba4\u5176\u4f59\u8bbe\u7f6e\u662f\u5426\u5982\u4e0b\u56fe\u4e00\u6837 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf447d6d2a.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/> \u540c\u65f6\u5728 Add IPv6 Address Pool \u586b\u5199\u5e76\u63d0\u4ea4 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf447f2794.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/><\/p>\n<p>==================================<\/p>\n<p>\u2463\u5ba2\u6237\u7aef\u5165\u7f51\u90e8\u5206 \u5728 https:\/\/www.zerotier.com\/download\/ \u4e0b\u8f7d\u5bf9\u5e94\u7684\u5ba2\u6237\u7aef\u5e76\u5165\u7f51\uff0c\u540c\u65f6\u56e0\u4e3a\u662f PRIVATE \u7f51\u7edc\u9700\u8981\u4f60\u624b\u52a8\u52fe\u9009\u5ba2\u6237\u7aef<\/p>\n<p>\u4ee5\u624b\u673a\u5ba2\u6237\u7aef\u4e3a\u4f8b\uff0c\u586b\u5165\u7f51\u7edc ID\uff0c\u52fe\u9009 route all traffic though zerotier \u5e76\u52a0\u5165\u7f51\u7edc\u5373\u53ef<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201110_5faaf448539a1.png\" alt=\"\u4f7f\u7528 zerotier \u63a5\u5165 IPv6\" \/><\/p>\n<p>\u56e0\u4e3a\u9ed8\u8ba4\u8def\u7531\u7684\u539f\u56e0\uff0c\u8bb0\u5f97\u624b\u52a8\u8bbe\u7f6e zerotier \u4e3a default<\/p>\n<p>\u53ef\u901a\u8fc7 zerotier \u90e8\u7f72\u5230\u4e3b\u8def\u7531\u6216\u65c1\u8def\u7531\u8ba9\u6574\u4e2a\u5c40\u57df\u7f51\u53d7\u76ca\uff0c\u4f7f\u7528 radvd \u5373\u53ef<\/p>\n<p>==================================<\/p>\n<p>\u5199\u4f5c\u4e0d\u6613\uff0c\u6c42\u5927\u4f6c\u4eec\u7ed9\u70b9\u56de\u590d\u53ed<\/p>\n<p>\u5982\u6587\u4e2d\u6709\u4ec0\u4e48\u5730\u65b9\u5199\u7684\u4e0d\u5bf9\uff0c\u8bf7\u5404\u4f4d\u5927\u4f6c\u6307\u51fa\u9e2d<\/p>\n<p>\u8bdd\u8bf4\u8fd9\u4e2a\u7b97\u4e0d\u7b97 IPv6 over cn2 \uff08\u9003<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4098880\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : simplove <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6837\u5c31\u53ef\u4ee5 FQ \u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098881\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : INTEL2333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @simplove \u54b3\u54b3\u54b3\uff0c\u5982\u679c aaaa \u7ed3\u679c\u6b63\u786e\u7684\u8bdd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098882\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LGA1150 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528 foo-over-UDP \u6216 L2TPv3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098883\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jciba5n4y6u <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u901f\u5ea6\u5feb\u5f88\u591a\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098884\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : INTEL2333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jciba5n4y6u \u8bbf\u95ee cloudflare \u4e4b\u7c7b\u7684\u901f\u5ea6\u5f53\u7136\u6bd4\u4e09\u5bb6\u539f\u751f v6 \u5feb\u5f97\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098885\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aznmv3 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f46\u662f\u770b\u6210\u679c\u56fe\u4e3b\u662f\u6709\u81ea\u5df1\u7684 ASN \u624d\u80fd\u5ad6 \/\u4e70\u7684 transit \u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4098886\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : INTEL2333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @aznmv3 \u88ab\u53d1\u73b0\u4e86(\u25cd \u00b4\ua4b3` \u25cd)<br \/>\u5176\u5b9e\u662f\u6211\u5c40\u57df\u7f51\u8dd1\u4e86 radvd \u61d2\u5f97\u6539\u4e86<br \/>\u4e0d\u8fc7\u4e5f\u662f\u4f7f\u7528 zt \u63a5\u5165\u7684\u5594(\u25cd\u2022\u1d17\u2022\u25cd)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 zerotier \u63a5\u5165 IP&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/188467"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188467"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/188467\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188467"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}