<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mesh on WOLF's Blog</title><link>https://blog.kylinwolf.com/tags/mesh/</link><description>Recent content in Mesh on WOLF's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 20 Aug 2026 12:32:15 +0800</lastBuildDate><atom:link href="https://blog.kylinwolf.com/tags/mesh/index.xml" rel="self" type="application/rss+xml"/><item><title>用CloudFlare Mesh搭建私有局域网</title><link>https://blog.kylinwolf.com/posts/%E7%94%A8cloudflare-mesh%E6%90%AD%E5%BB%BA%E7%A7%81%E6%9C%89%E5%B1%80%E5%9F%9F%E7%BD%91/</link><pubDate>Thu, 20 Aug 2026 12:32:15 +0800</pubDate><guid>https://blog.kylinwolf.com/posts/%E7%94%A8cloudflare-mesh%E6%90%AD%E5%BB%BA%E7%A7%81%E6%9C%89%E5%B1%80%E5%9F%9F%E7%BD%91/</guid><description>&lt;h1 id="原始需求">原始需求&lt;/h1>
&lt;p>现在有3个常用办公地点：家，宿舍，实验室。每个办公地点都有若干设备，也都有自己的局域网，也都没有固定的对外ipv4地址。 我现在想要实现各个设备跨域自由访问，类似虚拟局域网。 使用CloudFlare Mesh是否合适？如果合适？请详细具体知道我如何搭建和使用？&lt;/p>
&lt;h1 id="方案">方案&lt;/h1>
&lt;p>&lt;strong>Cloudflare Mesh 非常适合这样的场景。&lt;/strong> 它就是为&amp;quot;无公网 IP 的多地点设备互联&amp;quot;设计的，所有流量经 Cloudflare 全球网络加密转发（后量子加密），支持 TCP/UDP/ICMP，相当于一个跨地域的虚拟局域网。&lt;/p>
&lt;hr>
&lt;h2 id="两种组网模式">两种组网模式&lt;/h2>
&lt;style>
 
 .custom-m10c-table-wrap {
 margin: 2rem 0 !important;
 width: 100% !important;
 overflow-x: auto !important; 
 border: 1px solid rgba(255, 255, 255, 0.15) !important; 
 border-radius: 4px !important; 
 background-color: transparent !important; 
 }

 .custom-m10c-table-wrap table {
 width: 100% !important;
 border-collapse: collapse !important;
 font-size: 0.9rem !important;
 line-height: 1.6 !important;
 color: #999999 !important; 
 margin: 0 !important;
 }

 
 .custom-m10c-table-wrap th {
 background-color: rgba(255, 255, 255, 0.05) !important; 
 color: #ffffff !important; 
 font-weight: 600 !important;
 padding: 12px 16px !important;
 border-bottom: 2px solid rgba(255, 255, 255, 0.25) !important; 
 border-right: 1px solid rgba(255, 255, 255, 0.1) !important; 
 }

 
 .custom-m10c-table-wrap td {
 padding: 14px 16px !important;
 border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; 
 border-right: 1px solid rgba(255, 255, 255, 0.08) !important; 
 white-space: normal !important;
 }

 
 .custom-m10c-table-wrap th:last-child,
 .custom-m10c-table-wrap td:last-child {
 border-right: none !important;
 }

 
 .custom-m10c-table-wrap tbody tr:nth-of-type(even) {
 background-color: rgba(255, 255, 255, 0.02) !important;
 }

 
 .custom-m10c-table-wrap tbody tr:hover {
 background-color: rgba(255, 255, 255, 0.04) !important;
 }
 .custom-m10c-table-wrap tbody tr:hover td {
 color: #ffffff !important; 
 transition: color 0.2s ease;
 }
&lt;/style>

&lt;div class="custom-m10c-table-wrap">
 &lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>模式&lt;/th>
 &lt;th>适用场景&lt;/th>
 &lt;th>是否需要服务器&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;strong>A. 纯客户端互联&lt;/strong>&lt;/td>
 &lt;td>每台设备都装客户端，设备间用 Mesh IP 互访&lt;/td>
 &lt;td>❌ 不需要&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>B. 站点到站点（Site-to-Site）&lt;/strong>&lt;/td>
 &lt;td>每个地点部署一台 Linux 做 Mesh 节点，该地点整段子网互通&lt;/td>
 &lt;td>✅ 每地点一台&lt;/td>
 &lt;/tr>
 &lt;/tbody>
 &lt;/table>
&lt;/div>
&lt;h3 id="推荐方案">推荐方案&lt;/h3>
&lt;ul>
&lt;li>如果你&lt;strong>每台设备都能装客户端&lt;/strong>（Windows/macOS/Linux/iOS/Android）→ &lt;strong>方案 A&lt;/strong>，最简单，零基础设施&lt;/li>
&lt;li>如果某些设备&lt;strong>不能装客户端&lt;/strong>（如打印机、NAS、IoT）→ &lt;strong>方案 B&lt;/strong>，让整段子网可达&lt;/li>
&lt;li>两者可以&lt;strong>混合使用&lt;/strong>：既部署节点打通子网，又在常用设备上装客户端&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="方案-a纯客户端互联最简方案">方案 A：纯客户端互联（最简方案）&lt;/h2>
&lt;p>每个地点的每台设备安装 Cloudflare One Client 并注册，即可获得一个 &lt;code>100.96.0.0/12&lt;/code> 范围内的 Mesh IP，任意两台设备直接用 Mesh IP 互访。&lt;/p></description></item></channel></rss>