id: 89b8969dd5bf430b8c3b213f414d4123
parent_id: 
item_type: 1
item_id: e877d22670a44a27a339ba73a611aac0
item_updated_time: 1764345474501
title_diff: "[{\"diffs\":[[1,\"远程连接内网，zerotier，真香！（一）\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":22}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>远程连接内网，zerotier，真香！（一）</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"6967\\\"></a>\\\r\\\n<h1>远程连接内网，zerotier，真香！（一）</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article; --en-clipped-source-url:https://www.toutiao.com/i7069674710128214531/?tt_from=weixin&amp;utm_campaign=client_share&amp;wxshare_count=1&amp;timestamp=1646095601&amp;app=news_article&amp;utm_source=weixin&amp;utm_medium=toutiao_android&amp;use_new_style=1&amp;req_id=202203010846400101402051712027D99E&amp;share_token=7b11ab26-6162-4ec8-8128-9813f2de1ece&amp;group_id=7069674710128214531; --en-clipped-source-title:远程连接内网，zerotier，真香！（一）;\\\">\\\n<div><br/></div><div style=\\\"min-height: 13323px; font-size: 16px; display: block; min-width: 100%; position: relative;\\\"> <div style=\\\"line-height:1.15;text-size-adjust:100%;box-sizing:border-box;font:12px / 1.14 &quot;SF Pro Display&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, sans-serif;\\\"><div style=\\\"font:12px / 1.14 &quot;SF Pro Display&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Helvetica Neue&quot;, Arial, sans-serif;-webkit-font-smoothing:antialiased;color:rgb(51, 51, 51);outline:0px;background:rgb(255, 255, 255);box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;vertical-align:top;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><h1 style=\\\"margin:0px;padding:0px;box-sizing:border-box;font-size:37px;font-weight:600;line-height:56px;color:rgb(0, 0, 0);\\\">远程连接内网，zerotier，真香！（一）</h1><div style=\\\"padding:0px;box-sizing:border-box;margin:16px 0px 36px;font-size:14px;line-height:20px;color:rgb(112, 112, 112);\\\"><span style=\\\"box-sizing:border-box;display:inline-block;cursor:auto;margin:1px 8px 1px 0px;border-radius:3px;padding:1px 4px;font-size:12px;line-height:16px;color:rgb(112, 112, 112);background:rgb(242, 242, 242);\\\">原创</span><span style=\\\"box-sizing:border-box;display:inline-block;cursor:auto;\\\">2022-02-28 17:12</span><span style=\\\"box-sizing:border-box;cursor:auto;display:inline-block;margin:0px 4px;\\\">·</span><span style=\\\"box-sizing:border-box;display:inline-block;cursor:auto;\\\"><a href=\\\"https://www.toutiao.com/c/user/token/MS4wLjABAAAA258buH9k6waMdoqe2EIavhbo9T7Ptnck0ayX39perM05TnDgqqvmVhgEpF-yiJHN/?source=tuwen_detail\\\" rel=\\\"noopener\\\" style=\\\"background-color:transparent;cursor:pointer;box-sizing:border-box;text-decoration:none;color:rgb(112, 112, 112);\\\" target=\\\"_blank\\\">孔昊天的折腾日记</a></span></div><div style=\\\"display:block;box-sizing:border-box;margin-bottom:20px;\\\"><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">引言</strong>：因为一些特殊原因，不能在家办公了。出门时间紧迫，又来不及部署端口映射什么的。现在大部分教程，还是需要连接内网设备完成的，为了远程方便，出门前顺手再电脑上安装了todesk，方便远程操作。到了外面，就在想，有没有异地组网的这种操作。</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">看了两种方案：</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">WireGuard</strong>：新兴的方便快捷的组网方案，虽说方便快捷，但是对新手还是很不收好的，命令行界面有点多，另因为没有公网地址，还要建立中继服务器，直接放弃，后续有需要再去研究这个东西。</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">zerotire</strong>：这个就是今天我们要讲的主角，p2p打洞成功，速度还是可以的。</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">连接后，ping家里路由器延迟</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/c084a045845940dfb484434836c43b73\\\" type=\\\"image/png\\\" data-filename=\\\"c084a045845940dfb484434836c43b73\\\" height=\\\"642\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"942\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">连接带宽在10m左右，这是连家里的群晖测的</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/2ebb935aef2c44b8819a7375047a365e\\\" type=\\\"image/png\\\" data-filename=\\\"2ebb935aef2c44b8819a7375047a365e\\\" height=\\\"548\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"1116\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">速度和稳定性可能稍差，但是并不影响使用，但是能通过它桥接整个子网，还是非常方便的。</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><span style=\\\"box-sizing:border-box;font-size:1.412em;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">1.创建网络</strong></span></p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">首先我们https://www.zerotier登陆官网，创建一个新的网络，这时候在屏幕上方的是你的虚拟网络id，在所有的zerotire客户端中，输入该id即可加入这个网络。</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/6ede6c2a170049c5ae05da98c6d3a727\\\" type=\\\"image/png\\\" data-filename=\\\"6ede6c2a170049c5ae05da98c6d3a727\\\" height=\\\"1462\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2662\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">注意下方的access control 要选择provate，新加入的成员需要你的授权才可以进入虚拟网络。</p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">2.路由器加入虚拟网络</strong></p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">打开openwrt中，zerotier，输入刚才获得到的网络id，启动zerotier</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/a1d999f0903748309aa2511b2740d3aa\\\" type=\\\"image/png\\\" data-filename=\\\"a1d999f0903748309aa2511b2740d3aa\\\" height=\\\"1018\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2942\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">3.刷新管理页面，即可看到刚才添加的内网设备，可以命名为路由器方便识别。另外标注的两个地方需要勾选，一个是允许加入内网，另外一个是允许桥接设备，这个是访问我们内网设备的关键。</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/1197760af3ec4a1ea025e2c2eb53e5ce\\\" type=\\\"image/png\\\" data-filename=\\\"1197760af3ec4a1ea025e2c2eb53e5ce\\\" height=\\\"1006\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2676\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">另外需要手动加一条路径，左边是内网地址（注意这个格式，这相当于整个网段），右侧是虚拟网络中的路由器地址，对应输入即可</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/200b12dacce64209a9b5e68f7ffe8ad0\\\" type=\\\"image/png\\\" data-filename=\\\"200b12dacce64209a9b5e68f7ffe8ad0\\\" height=\\\"822\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2162\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><strong style=\\\"font-weight:400;box-sizing:border-box;\\\">3.创建接口</strong></p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">这里可以看到后续我们用到的接口信息和ip信息，打开openwrt，新建接口</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/5b122e4753c144d1a49a588bb910d520\\\" type=\\\"image/png\\\" data-filename=\\\"5b122e4753c144d1a49a588bb910d520\\\" height=\\\"1440\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"1696\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"><br style=\\\"box-sizing:border-box;\\\"/></p><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">填写参数</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/33bee82559ff4a2f803bde4f4f474ff5\\\" type=\\\"image/png\\\" data-filename=\\\"33bee82559ff4a2f803bde4f4f474ff5\\\" height=\\\"1360\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2254\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">对应参数可以在路由器服务端查看</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/54f4f5965b8a4408a94654f9ea8ea789\\\" type=\\\"image/png\\\" data-filename=\\\"54f4f5965b8a4408a94654f9ea8ea789\\\" height=\\\"412\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"996\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">设置防火墙（注意区域要和lan放一起）</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/244d1bab70824fb0af90558b2bff8e58\\\" type=\\\"image/png\\\" data-filename=\\\"244d1bab70824fb0af90558b2bff8e58\\\" height=\\\"1246\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2364\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\">5.加入需要进内网的设备。以mac为例，打开客户端后，输入我们的网络id，加入后，在管理界面允许进入，后续，就可以像内网一样访问我们的设备了</p><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/4a92ba873cc14305aeb9cff1b1b132f9\\\" type=\\\"image/png\\\" data-filename=\\\"4a92ba873cc14305aeb9cff1b1b132f9\\\" height=\\\"1002\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"2686\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div><div style=\\\"margin:0px;padding:0px;box-sizing:border-box;\\\"><img src=\\\"远程连接内网，zerotier，真香！（一）_files/01f262da5e8c4ccdafe9d0735ab9ded2\\\" type=\\\"image/png\\\" data-filename=\\\"01f262da5e8c4ccdafe9d0735ab9ded2\\\" height=\\\"1822\\\" style=\\\"border:0px;box-sizing:border-box;cursor:zoom-in;height:auto;\\\" width=\\\"3334\\\"/><p style=\\\"box-sizing:border-box;margin:0px;padding:0px;\\\"></p></div></div></div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":10052}]"
metadata_diff: {"new":{"id":"e877d22670a44a27a339ba73a611aac0","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345893869,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:28.014Z
created_time: 2025-11-28T16:20:28.014Z
type_: 13