{"id":1423,"date":"2019-08-30T13:12:46","date_gmt":"2019-08-30T05:12:46","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=1423"},"modified":"2022-05-27T09:36:11","modified_gmt":"2022-05-27T01:36:11","slug":"lede%e9%85%8d%e7%bd%aezerotier%e7%bd%91%e7%bb%9c","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=1423","title":{"rendered":"LEDE \u914d\u7f6eZeroTier\u7f51\u7edc\u6559\u7a0b"},"content":{"rendered":"<p style=\"text-align: justify;\">LEDE\u7684\u9177\u8f6f\u4e2d\u5fc3\u4e3a\u4f7f\u7528OPENWRT\u7684\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u5e94\u7528\u5b89\u88c5\u914d\u7f6e\u73af\u5883\uff0c\u5927\u5927\u964d\u4f4e\u4e86OPENWRT\u7684\u4f7f\u7528\u96be\u5ea6\u3002ZeroTier\u7c7b\u4f3c\u4e00\u6b3e\u865a\u62df\u8def\u7531\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5c06\u4e0d\u540c\u5730\u65b9\u7684\u4e0d\u540c\u7f51\u7edc\u901a\u8fc7\u865a\u62df\u7684\u65b9\u5f0f\u8fdb\u884c\u8fde\u63a5\uff0c\u4ee5\u65b9\u4fbf\u8fdb\u884c\u7f51\u7edc\u5171\u4eab\u3002\u5728LEDE\u4e2d\u914d\u7f6eZeroTier\u6bd4\u8f83\u7b80\u5355\uff0c\u672c\u4eba\u4f7f\u7528\u7684LEDE\u7248\u672c\u4e3a2.32\uff0c\u4e0b\u9762\u7684\u4ecb\u7ecd\u90fd\u9488\u5bf9\u8be5\u7248\u672c\u8fdb\u884c\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u4e00\u3001\u6ce8\u518cZeroier\u5e10\u53f7\uff1a<\/strong><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">1\u3001\u8bbf\u95ee<a href=\"https:\/\/zerotier.com\/\">ZeroTier.com <\/a>\u5b98\u65b9\u7f51\u7ad9\u8fdb\u884c\u7f51\u7ad9\u6ce8\u518c\uff0c\u7528\u5e10\u53f7\u767b\u5f55\uff0c\u70b9Greate a Network\u521b\u5efa\u4e00\u4e2a\u7f51\u7edc\u3002<\/span><span style=\"color: #000000;\"><br \/>\n<\/span><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/my.zerotier.com_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1427\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/my.zerotier.com_.png\" alt=\"\" width=\"757\" height=\"359\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">2\u3001\u5728IPv4 Auto-Assign(IPv4\u5730\u5740\u81ea\u52a8\u5206\u914d\uff09\u4e0a\uff0c\u9009\u4e2d\u4e00\u4e2a\u7f51\u7edc\u6bb5\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/Central-my.zerotier.com_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1428\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/Central-my.zerotier.com_.png\" alt=\"\" width=\"924\" height=\"422\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>\u4e8c\u3001\u5728LEDE\u4e0a\u5b89\u88c5\u8fd0\u884cZeroTier<\/strong><\/p>\n<p style=\"text-align: justify;\">1\u3001\u5728\u9177\u8f6f\u4e2d\u5fc3\u5b89\u88c5ZeroTier\u63d2\u4ef6\uff0c\u5b89\u88c5\u5b8c\u6210\u4ee5\u540e\u6253\u5f00ZeroTier\uff0c\u5728<strong>Network ID(\u7f51\u7edcID)<\/strong>\u4e2d\uff0c\u8f93\u5165\u81ea\u5df1\u5728ZeroTier\u4e0a\u5206\u914d\u7684\u7f51\u7edc\uff0c\u9009\u4e2d<strong>\u5f00\u542fZeroTier<\/strong>\u9009\u9879\uff0c\u70b9\u51fb<strong>\u5f00\u59cb\u8fd0\u884c<\/strong>\u6309\u94ae\u8fd0\u884c\u7a0b\u5e8f\u3002<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: consolas, Menlo, &amp;quot;\">2\u3001<\/span>\u8fd0\u884c\u4ee5\u540e\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre style=\"text-align: justify;\"># vi \/etc\/config\/zerotier<\/pre>\n<p style=\"text-align: justify;\">\u627e\u5230\u4ee5\u4e0b\u4e24\u5904\u8fdb\u884c\u4fee\u6539\uff1a<br \/>\nconfig zerotier sample_config<br \/>\noption enabled\u00a00 (\u8fd9\u91cc\u628a0\u66ff\u6362\u62101\uff0c\u8ba9\u9009\u9879\u751f\u6548)<br \/>\nlist join &#8216;8056c2e21c000001&#8217;\u00a0(\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u7f51\u7edcID)<br \/>\n\u5176\u4ed6\u65e0\u9700\u4fee\u6539<\/p>\n<p style=\"text-align: justify;\">\u9000\u51faVI\uff0c\u6309esc\uff0c\u7136\u540e\u6309:(\u5192\u53f7)\u56de\u8f66\uff0c\u518d\u6309wq\u4fdd\u5b58\u9000\u51fa\u7f16\u8f91\u754c\u9762\u3002\u7136\u540e\u8f93\u5165reboot\uff0c\u91cd\u542f\u3002<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528WINSCP\u7b49\u8f6f\u4ef6\u76f4\u63a5\u8fdb\u884c\u4fee\u6539\u3002<br \/>\n<\/span><br \/>\n3\u3001<span style=\"color: #000000;\">\u5728LEDE\u4e0a<\/span><span style=\"color: #000000;\">\u70b9\u51fb<strong>\u7f51\u7edc-&gt;\u9632\u706b\u5899<\/strong>\uff0c\u5728\u57fa\u672c\u8bbe\u7f6e&gt;\u533a\u57df\u8bbe\u7f6e\u91cc\uff0c\u628a<strong>\u8f6c\u53d1<\/strong>\u6539\u4e3a<strong>\u63a5\u53d7<\/strong>\u3002<\/span><span style=\"color: #000000;\"><strong>\u533a\u57df<\/strong>\u4e0b\u9762\u7684\u4e09\u884c\uff08\u51fa\u7ad9\uff0c\u5165\u7ad9\uff0c\u8f6c\u53d1\uff09\u90fd\u9009\u63a5\u53d7\uff0c\u5176\u4ed6\u9009\u9879\u4fdd\u6301\u4e0d\u52a8\u3002<\/span><br \/>\n<span style=\"color: #000000;\">\u5728<strong>\u9632\u706b\u5899-&gt;\u81ea\u5b9a\u4e49\u89c4\u5219<\/strong>\u9875\u9762\uff0c\u589e\u52a0\u4e0b\u9762\u4e09\u6761\u8bb0\u5f55\uff1a<\/span><\/p>\n<pre style=\"text-align: justify;\"><span style=\"color: #000000;\">iptables -I FORWARD -i\u00a0<\/span><span style=\"color: #ff0000;\">ztc3qwyx5l<\/span><span style=\"color: #000000;\">\u00a0-j ACCEPT<\/span>\r\n<span style=\"color: #000000;\">iptables -I FORWARD -o\u00a0<\/span><span style=\"color: #ff0000;\">ztc3qwyx5l<\/span><span style=\"color: #000000;\">\u00a0-j ACCEPT<\/span>\r\n<span style=\"color: #000000;\">iptables -t nat -I POSTROUTING -o\u00a0<\/span><span style=\"color: #ff0000;\">ztc3qwyx5l<\/span><span style=\"color: #000000;\">\u00a0-j MASQUERADE<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>\u00a0<span style=\"color: #ff0000;\">ztc3qwyx5l<\/span><\/strong>\u662fLEDE\u7684ZeroTier\u865a\u62df\u63a5\u53e3\u7684\u540d\u79f0\uff0c\u5728\u7ec8\u7aef\u53ef\u4ee5\u4f7f\u7528<strong>ifconfig<\/strong>\u547d\u4ee4\u67e5\u770b\uff0c\u8bf7\u81ea\u884c\u66ff\u6362\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u70b9\u51fb<\/span><strong><span style=\"color: #000;\">\u91cd\u542f\u9632\u706b\u5899\u3002<\/span><\/strong><\/p>\n<h1 style=\"text-align: justify;\">\u4e09\u3001\u914d\u7f6eZEROTIER\u7f51\u7edc\u8def\u7531<\/h1>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u5728ZeroTier\u7f51\u7edc\u7684<strong>Members<\/strong>\u90e8\u5206\uff0c\u9009\u4e2d\u5df2\u51fa\u73b0\u7684\u7f51\u7edc\u6210\u5458\u5bf9\u5176\u8fdb\u884c\u6388\u6743\u3002\u7a0d\u7b49\u7247\u523b\uff0cZeroTier\u5c31\u4f1a\u7ed9\u6bcf\u4e2a\u6210\u5458\u5206\u914dManaged IPs(\u7ba1\u7406IP)\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u5728ZeroTier\u7f51\u7edc\u7684<strong>Managed Routes(\u7ba1\u7406\u8def\u7531)<\/strong>\u90e8\u5206\uff0c\u5c06\u5b50\u7f51\u4e0e\u7ba1\u7406IP\u8fdb\u884c\u5bf9\u5e94\uff0c\u8bbe\u7f6e\u8def\u7531\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u53ef\u4ee5\u628a\u591a\u4e2a\u5b50\u7f51\u90fd\u901a\u8fc7ZeroTier\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u865a\u62df\u7684\u5c40\u57df\u7f51\u7edc\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/Central11-my.zerotier.com_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1438\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/Central11-my.zerotier.com_.png\" alt=\"\" width=\"1314\" height=\"443\" \/><\/a><br \/>\n<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/3Central333-my.zerotier.com_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1432\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/3Central333-my.zerotier.com_.png\" alt=\"\" width=\"919\" height=\"458\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><span style=\"color: #000000;\">\u56db\u3001\u6d4b\u8bd5<\/span><\/h1>\n<p style=\"text-align: justify;\">\u901a\u8fc7\u4ee5\u4e0a\u8bbe\u7f6e\uff0cLEDE\u7684ZeroTier\u7f51\u7edc\u914d\u7f6e\u5c31\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u53ef\u4ee5\u5728LEDE\u4e0aPING\u5bb6\u91cc\u7684\u7f51\u5173\u5730\u5740192.168.102.1\uff0c\u6d4b\u8bd5\u662f\u5426\u53ef\u4ee5\u8fde\u901a\u3002<\/p>\n<h1>\u4e94\u3001\u914d\u7f6eMOON(\u8fdb\u9636)<\/h1>\n<p style=\"text-align: justify;\">MOON\u53c8\u79f0\u4e3a\u81ea\u5b9a\u4e49\u6839\u670d\u52a1\u5668\uff0c\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684\u670d\u52a1\u5668\u4f5c\u4e3a\u8df3\u677f\u52a0\u901f\u5185\u7f51\u673a\u5668\u4e4b\u95f4\u7684\u4e92\u76f8\u8bbf\u95ee\u3002\u6211\u7684LEDE\u7248\u672c\u662f2.32\uff0c\u6709\u56fa\u5b9a\u516c\u7f51IP\uff0c\u4e3a\u4e86\u63d0\u9ad8ZeroTier\u5728\u4e0d\u540c\u5b50\u7f51\u4e4b\u95f4\u4e92\u8bbf\u7684\u901f\u5ea6\uff0c\u5efa\u7acbMOON\u8282\u70b9\u5c31\u975e\u5e38\u6709\u5fc5\u8981\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u542f\u7528ZeroTier\u540e\uff0c\u6211\u53d1\u73b0ZeroTier\u5b89\u88c5\u76ee\u5f55\/var\/lib\/zerotier-one\uff08\u8fd9\u4e2a\u76ee\u5f55\u5b9e\u9645\u94fe\u63a5\u5230\/var\/lib\/zerotier-one_sample_config\uff09\u662f\u4e34\u65f6\u76ee\u5f55 \uff0c\u5728\u91cd\u542f\u540e\u5c31\u81ea\u52a8\u5220\u9664\uff0c\u5fc5\u987b\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u624d\u80fd\u4fdd\u7559MOON\u7684\u914d\u7f6e\u3002<\/p>\n<h2 style=\"text-align: justify;\">1.\u4fee\u6539\u914d\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u4fee\u6539 \/etc\/config\/zerotier\uff0c\u52a0\u5165\u4e0b\u9762\u4e00\u884c\u9009\u9879\uff1a<\/p>\n<pre style=\"text-align: justify;\">option config_path '\/etc\/zerotier'<\/pre>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org-content\/uploads\/2019\/08\/565.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1569 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/565.jpg\" alt=\"\" width=\"386\" height=\"104\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/565.jpg 386w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/565-300x81.jpg 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/a><br \/>\n\u7136\u540e\u5728\u6839\u76ee\u5f55\u7684\/etc\/\u76ee\u5f55\u4e0b\uff0c\u65b0\u5efazerotier\u76ee\u5f55\u7528\u6765\u5b58\u653emoons\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u4e3a\u7b80\u5316\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5c06zerotier\u4e34\u65f6\u5b89\u88c5\u76ee\u5f55\/var\/lib\/zerotier-one_sample_config\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u590d\u5236\u4e00\u4efd\u5230\u8be5\u76ee\u5f55\u4e2d\uff0c\u4e0b\u9762\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u5728\u8be5\u76ee\u5f55\u8fdb\u884c\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u6ce8\u610f<\/strong>\uff1a<span style=\"color: #000000;\">LEDE2.33\u7684\u76ee\u5f55\u5df2\u4fee\u6539\u4e3a\u4e0b\u9762\u7684\u8def\u5f84\uff0c\u5982\u679c\u662f\u4ece2.32\u4fdd\u7559\u914d\u7f6e\u5347\u7ea7\u52302.33\uff0c\u90a3\u4e48 zerotier\u5c06\u4e0d\u80fd\u6b63\u5e38\u542f\u52a8\uff0c\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u548c\u914d\u7f6e\u3002<\/span><\/span><\/p>\n<pre>\/tmp\/lib\/zerotier-one_sample_config<\/pre>\n<h2 style=\"text-align: justify;\">2.\u751f\u6210MOON\u6587\u4ef6<\/h2>\n<p style=\"text-align: justify;\">\u8fdb\u5165ZeroTier\u76ee\u5f55(\u5176\u4ed6\u7248\u672c\u7684OpenWrt\u4e00\u822c\u5728\/var\/lib\/zerotier-one)\uff1a<\/p>\n<pre style=\"text-align: justify;\">cd \/etc\/zerotier<\/pre>\n<p style=\"text-align: justify;\">\u8fd0\u884c\u4e0b\u9762\u4e24\u6761\u547d\u4ee4\uff1a<\/p>\n<pre style=\"text-align: justify;\">zerotier-idtool generate identity.secret identity.public\r\nzerotier-idtool initmoon identity.public &gt;&gt;moon.json<\/pre>\n<p style=\"text-align: justify;\">\u5728\u5f53\u524d\u76ee\u5f55\u751f\u6210moon.json\u6587\u4ef6\u3002<\/p>\n<h2 style=\"text-align: justify;\">3.\u4fee\u6539MOONS\u6587\u4ef6<\/h2>\n<p style=\"text-align: justify;\">\u4fee\u6539 moon.json\u6587\u4ef6\u4e2d&#8221;stableEndpoints&#8221; \u5b57\u6bb5\u4e3aLEDE\u8def\u7531\u7684\u516c\u7f51IP\uff0c9993\u4e3a\u7aef\u53e3\u53f7\u3002<br \/>\n<span style=\"color: #ff0000;\"><strong>\u6ce8\u610f\uff1a<\/strong><\/span>LEDE2.33\uff082.34\u7248\u672c\u4e2d\u5df2\u6ca1\u6709\u8fd9\u4e9b\u5185\u5bb9\uff09\u4e2d\u751f\u6210\u7684moon.json\u6587\u4ef6\uff0c\u9700\u8981\u628a\u591a\u4f59\u7684\u7b7e\u7f72\u5bc6\u94a5\u90e8\u5206\u5220\u9664\uff08\u4e0b\u56fe\u7eff\u6846\u90e8\u5206\uff09\uff0c\u5426\u5219\u4e0d\u80fd\u751f\u6210\u7b7e\u540d\u6587\u4ef6\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1631 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons.jpg\" alt=\"\" width=\"1117\" height=\"446\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons.jpg 1117w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons-1024x409.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons-300x120.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons-768x307.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/08\/moons-500x200.jpg 500w\" sizes=\"auto, (max-width: 1117px) 100vw, 1117px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\">4.\u751f\u6210\u7b7e\u540d\u6587\u4ef6<\/h2>\n<p style=\"text-align: justify;\">\u8fd0\u884c\u547d\u4ee4\uff1a<\/p>\n<pre style=\"text-align: justify;\">zerotier-idtool genmoon moon.json<\/pre>\n<p style=\"text-align: justify;\">\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u7b7e\u540d\u6587\u4ef600000005ff20a0f6.moon<\/p>\n<h2 style=\"text-align: justify;\">5.\u5c06MOON\u8282\u70b9\u52a0\u5165\u7f51\u7edc<\/h2>\n<p>\u5c06LEDE\u672c\u673a\u8bbe\u4e3aMOON\u8282\u70b9\u3002<br \/>\n\u5728\/etc\/zerotier\u76ee\u5f55\u5efa\u7acbmoons.d\u5b50\u76ee\u5f55\uff0c\u5c06\u751f\u6210\u768400000005ff20a0f6.moon\u590d\u5236\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u5e76\u91cd\u542f\u8bbe\u5907\u3002<\/p>\n<p>\u5176\u4ed6\u8bbe\u5907\u52a0\u5165MOON\u8282\u70b9\u65b9\u6cd5<\/p>\n<p><strong>\u65b9\u6cd5\u4e00<\/strong><br \/>\n\u627e\u5230ZeroTier\u5b89\u88c5\u76ee\u5f55\uff0c\u65b0\u5efamoons.d\u6587\u4ef6\u5939\uff0c\u5c0600000005ff20a0f6.moon\u590d\u5236\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u91cd\u542f\u8bbe\u5907\u3002<br \/>\n\u4e0d\u540c\u7cfb\u7edf\u7684ZeroTier\u5b89\u88c5\u76ee\u5f55\u4f4d\u7f6e\uff1a<\/p>\n<pre>Windows: C:\\ProgramData\\ZeroTier\\One\r\nMacintosh: \/Library\/Application Support\/ZeroTier\/One (\u5728 Terminal \u4e2d\u5e94\u4e3a \/Library\/Application\\ Support\/ZeroTier\/One)\r\nLinux: \/var\/lib\/zerotier-one\r\nFreeBSD\/OpenBSD: \/var\/db\/zerotier-one<\/pre>\n<p><strong>\u65b9\u6cd5\u4e8c<\/strong><br \/>\n\u5728\u7ec8\u7aef\u4e0a\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n<pre>zerotier-cli orbit 5ff20a0f6<\/pre>\n<h2 style=\"text-align: justify;\">6.\u9a8c\u8bc1\u6d4b\u8bd5<\/h2>\n<p>\u67e5\u770b\u662f\u5426\u5728MOON\u4e0b\u8fd0\u884c\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>zerotier-cli listpeers<\/pre>\n<p><strong>PLANET<\/strong> \uff1a\u884c\u661f\u670d\u52a1\u5668\uff0cZerotier \u5404\u5730\u7684\u6839\u670d\u52a1\u5668\uff0c\u6709\u65e5\u672c\u3001\u65b0\u52a0\u5761\u7b49\u5730<br \/>\n<strong>MOON<\/strong> \uff1a\u00a0 \u00a0\u536b\u661f\u7ea7\u670d\u52a1\u5668\uff0c\u7528\u6237\u81ea\u5efa\u7684\u79c1\u6709\u6839\u670d\u52a1\u5668\uff0c\u8d77\u5230\u4e2d\u8f6c\u52a0\u901f\u7684\u4f5c\u7528<br \/>\n<strong>LEAF<\/strong> \uff1a\u00a0 \u00a0 \u00a0\u76f8\u5f53\u4e8e\u5404\u4e2a\u679d\u53f6\uff0c\u5c31\u662f\u6bcf\u53f0\u8fde\u63a5\u5230\u8be5\u7f51\u7edc\u7684\u673a\u5668\u8282\u70b9<\/p>\n<p>\u5982\u679c\u67d0\u4e00\u884c\u663e\u793a\u6709MOON\u5b57\u6837\uff0c\u5c31\u8bc1\u660eMOON\u5df2\u88ab\u672c\u673a\u6807\u8bc6\u4e86\u3002<br \/>\n<strong>\u6ce8\u610f\uff1a<\/strong>\u672c\u673a\u4e0d\u80fd\u770b\u81ea\u5df1\uff0c\u6240\u4ee5\u53ea\u80fd\u5728\u522b\u7684\u8bbe\u5907\u4e0a\u770b\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u540e\u8bb0\uff1a2020-6-29<\/span><\/p>\n<p>\u6700\u8fd1\u5c06LEDE2.33\u4fdd\u7559\u914d\u7f6e\u5347\u7ea7\u5230\u4e862.35\uff0c\u53d1\u73b0ZeroTier\u4e0d\u80fd\u542f\u7528\uff0c\u7ecf\u8fc7\u591a\u6b21\u8bd5\u9a8c\uff0c\u627e\u5230\u6b63\u786e\u542f\u52a8\u65b9\u6cd5\u3002<\/p>\n<ol>\n<li>\u5220\u9664ZeroTier\u63d2\u4ef6\u540e\u91cd\u88c5\u3002<\/li>\n<li>\u5982\u679c\u8fd8\u4e0d\u80fd\u542f\u52a8\uff0c\u4fee\u6539\/etc\/config\/zerotier\u6587\u4ef6\uff0c\u5c06option enabled\u6539\u4e3a1\uff0clist join\u540e\u9762\u7684\u503c\u6539\u4e3aZeroTier network ID\u3002<\/li>\n<li>\u518d\u6b21\u8fdb\u5165\u9177\u8f6f\u754c\u9762\uff0c\u6b63\u5e38\u542f\u52a8ZeroTier\u3002<\/li>\n<\/ol>\n<p>\u53e6\u4e00\u79cd\u65b9\u6cd5\uff0c\u8fdb\u5165LEDE\u7684shell\u73af\u5883\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<pre>zerotir-one -d<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LEDE\u7684\u9177\u8f6f\u4e2d\u5fc3\u4e3a\u4f7f\u7528OPENWRT\u7684\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u5e94\u7528\u5b89\u88c5\u914d\u7f6e\u73af\u5883\uff0c\u5927 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=1423\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[106],"class_list":["post-1423","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-zerotier"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1423"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1423\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}