id: 4f3b002f689e463196b2103ae0beeba4
parent_id: 
item_type: 1
item_id: 125a5a8d617844d7a2d7e459508802f0
item_updated_time: 1764345613945
title_diff: "[{\"diffs\":[[1,\"[开源]全网最简单，无公网IP一条命令就能将 互联网任意两台主机直连\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":34}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>[开源]全网最简单，无公网IP一条命令就能将 互联网任意两台主机直连</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  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\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=\\\"35532\\\"></a>\\\r\\\n<h1>[开源]全网最简单，无公网IP一条命令就能将 互联网任意两台主机直连</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=Mzk0ODI4NjUyNA==&amp;mid=2247503216&amp;idx=1&amp;sn=78b7cb2f957e0b7b9f92afc007c6ba3b&amp;chksm=c29efdfae45d1b45263805f5f61fad6b65a6dc61d9a75f0f21799c08b9a3ab487e9dbd1a8ce5&amp;mpshare=1&amp;scene=1&amp;srcid=0103JMy9Buoq3WUy0noIiZJS&amp;sharer_shareinfo=bd94d7f607e7678313b39513ed5ea404&amp;sharer_shareinfo_first=bd94d7f607e7678313b39513ed5ea404#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=Mzk0ODI4NjUyNA==&amp;mid=2247503...</span></a></div></div><p></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 一飞开源 </a></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><em style=\\\"-webkit-tap-highlight-color: transparent;\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">一飞开源，介绍创意、新奇、有趣、实用的开源应用、系统、软件、硬件及技术，一个探索、发现、分享、使用与互动交流的开源技术社区平台。致力于打造活力开源社区，共建开源新生态！</p></div></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; background-color: rgb(255,255,255); color: rgb(34,34,34); font-weight: 700; letter-spacing: normal;\\\">一、开源项目简介</span><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></p><p style=\\\"-webkit-tap-highlight-color: transparent; text-align: center;\\\"><img src=\\\":/41ed740f546f4ff69e56058f6b152d2c\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></p><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">全网最简单，一条命令就能将 互联网任意两台主机直连！无公网IP、无服务器中转、无需安装、无需注册。内网穿透、NAT打洞，适合小白。</p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">二、开源协议</h1><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">使用Apache-2.0开源协议</p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">三、界面展示</h1><p style=\\\"-webkit-tap-highlight-color: transparent; text-align: center;\\\"><img src=\\\":/d0a3fd9c25804c6197a6b671b03ac7ac\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></p><p style=\\\"-webkit-tap-highlight-color: transparent; text-align: center;\\\"><img src=\\\":/24a487d1a52b4bc0bae290f579f7570e\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">四、功能概述</h1><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">特点</h1><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style-type: decimal;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">两台主机之间直连！直连！直连！不经过第三方服务器，不用担心数据隐私泄露</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">一条命令搞定，无需安装、无需注册，无需公网 IP，无需配置文件</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">直连基于 QUIC，高性能，已加密</p></li></ol><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">注：1.1.6 版本开始加强了通信安全，因此和老版本不兼容</p><p style=\\\"-webkit-tap-highlight-color: transparent; text-align: center;\\\"><img src=\\\":/5668670d02fb48e0bd09f4f0e78cb1c1\\\" type=\\\"image/gif\\\" data-filename=\\\"640.gif\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">介绍</h1><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style-type: decimal;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">两台主机运行同一个程序, 一台主机加--remote 选项(以下称 remote 端), 另一台主机加--local 选项(以下称 local 端)</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">local 端和 remote 端之间的连接是点对点直连的，不经过第三方服务器</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">可以在 local 端访问 remote 端, 但是反过来不可以</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果需要反过来, 或者需要访问多个 remote 端, 就运行多个程序或启动多个 Docker</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">可以多个 local 端对应一个 remote 端，但一个 local 端不能对应多个 remote 端。通过使用相同的--key 确认对应关系</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">由于直连过程复杂，会出现反复重试，通常 10 分钟内成功。如果长时间无法连接，请反馈给作者解决</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">本程序即支持命令行方式，也支持 docker 方式，以下举例仅作参考，实际可随意切换</p></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\">windows 自带杀毒软件，会将所有 go 语言写的程序都认为是病毒。本程序已开源，可放心食用</p></li></ol><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">五、技术选型</h1><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">简单使用</h1><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">工作模式 - 介绍</h1><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">代理模式</h1><div style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; background: rgb(250,250,250); word-break: break-all; overflow-x: auto; border-radius: 3px; text-align: left; color: rgb(34,34,34); letter-spacing: normal;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>local端需要指定本地端口，以提供Socks5代理服务</span><br/><span></span><br/><span>local端需要在系统或者软件中配置Socket5代理，便可访问remote端所处网络中的所有主机端口</span><br/></pre></div></div><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">转发模式</h1><div style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; background: rgb(250,250,250); word-break: break-all; overflow-x: auto; border-radius: 3px; text-align: left; color: rgb(34,34,34); letter-spacing: normal;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>remote端需要指定所处网络中的某一个主机端口，local端也需要指定本地端口</span><br/><span></span><br/><span>local端无需配置Socks5代理，直接访问指定的本地端口，就等于访问remote端指定的主机端口。但也只能访问这一个端口</span><br/><span></span><br/><span>注：转发模式仅支持TCP协议，一个remote端只能转发一个端口，可运行多个remote端</span><br/></pre></div></div><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">代理模式 - 举例</h1><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">local 端运行在公司的电脑，remote 端运行在家里的 NAS</p><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">在公司电脑上配置代理地址：socks5://127.0.0.1:18080，便可访问家里包括 NAS 在内的所有主机端口</p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">家里的 NAS ( linux，Docker )</h1><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">下载镜像：registry.cn-shanghai.aliyuncs.com/kony/goodlink</p><div style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; background: rgb(250,250,250); word-break: break-all; overflow-x: auto; border-radius: 3px; text-align: left; color: rgb(34,34,34); letter-spacing: normal;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>docker rm goodlink -f; docker run -d --name=goodlink --net=host --restart=always registry.cn-shanghai.aliyuncs.com/kony/goodlink --key= nas_202412140928</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">注：remote 端和 local 端均支持命令行 和 Docker 方式，二选一即可，以上仅作两种方式的举例</p><h1 style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; font-weight: 700; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255);\\\">六、源码地址</h1><p style=\\\"-webkit-tap-highlight-color: transparent; border-width: 0; border-style: initial; border-color: initial; color: rgb(34,34,34); letter-spacing: normal; background-color: rgb(255,255,255); text-align: left;\\\">访问一飞开源：https://code.exmay.com/</p></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\">阅读原文</a></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":14032}]"
metadata_diff: {"new":{"id":"125a5a8d617844d7a2d7e459508802f0","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","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":1764348826282,"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-28T21:04:02.399Z
created_time: 2025-11-28T21:04:02.399Z
type_: 13