<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>ZBLOG</title><link>https://blog.hbhtyw.com/</link><description>Good Luck To You!</description><item><title>【frp】双端内网环境XTCP协议P2P打洞互通实践</title><link>https://blog.hbhtyw.com/?id=30</link><description>&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;博主最早接触frp的xtcp是在2024年，当时遇到了一个对udp限制极为苛刻的园区网络，只有xtcp能够穿越重重阻碍提供一个毫秒级的点对点互联。后来对面逐渐独立，这套方案也就被博主完全忘在脑后了，也并未深究。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;然而，去年9月博主在宿舍开始使用移动宽带，通过Tailscale连接办公室的rustdesk时常出现卡成ppt的情况。这段时间里，常常只能依靠腾讯和阿里200M的轻量应用服务器中继才能够获得比较理想的访问效果，但是这样在教育网中会带来50ms以上的访问延迟。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img decoding=&quot;async&quot; fetchpriority=&quot;high&quot; class=&quot;alignnone size-full wp-image-9467&quot; src=&quot;https://cdn.luotianyi.vc/wp-content/uploads/2026-05-03_13-28-15.jpg&quot; alt=&quot;&quot; width=&quot;1200&quot; height=&quot;600&quot; style=&quot;display: block; max-width: 100%; height: auto; width: auto; border-radius: 5px; overflow: hidden;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;最近突然冒出来个想法，既然校园网有多个出口，那么是不是可以在校园网移动出口和移动宽带之间打一个P2P的洞呢？这样也恰好可以不受运营商跨网的约束。然而现实是Tailscale在实际测试中始终无法建立Direct Connection，直到我想起了frp……&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img decoding=&quot;async&quot; class=&quot;alignnone size-full wp-image-9460&quot; src=&quot;https://cdn.luotianyi.vc/wp-content/uploads/2026-05-03_12-44-04.png&quot; alt=&quot;&quot; width=&quot;1445&quot; height=&quot;420&quot; style=&quot;display: block; max-width: 100%; height: auto; width: auto; border-radius: 5px; overflow: hidden;&quot;/&gt;&lt;/p&gt;&lt;hr style=&quot;color: rgb(49, 49, 49); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;h2 id=&quot;directory-0&quot; style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; font-size: 19px; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;一、环境检测&lt;/h2&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;进行p2p打洞需要双方网络环境的NAT映射和过滤行为属于Endpoint-independent或Address-dependent，而在Address and Port-dependent行为下（类似NAT4）不满足常规打洞需求。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;简而言之，我们可以通过frpc自带的&lt;code style=&quot;border: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline; white-space-collapse: preserve; overflow-wrap: break-word; border-radius: 3px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244);&quot;&gt;./frpc nathole discover&lt;/code&gt;命令进行检测，结果中两端至少有一端为EasyNAT才具备使用xtcp打洞的可能性。&lt;/p&gt;&lt;blockquote style=&quot;border-width: 0px 0px 0px 3px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: solid; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgba(0, 0, 0, 0.8); border-image: initial; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin: 30px 0px; outline: 0px; padding: 0px 0px 0px 10px; vertical-align: baseline; hyphens: none; quotes: none; letter-spacing: 0.01rem; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;frp&lt;/strong&gt;：&lt;a href=&quot;https://github.com/fatedier/frp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(123, 135, 140);&quot;&gt;GitHub – fatedier&lt;/a&gt;&lt;br/&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NatTypeTester&lt;/strong&gt;：&lt;a href=&quot;https://github.com/HMBSbige/NatTypeTester&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(123, 135, 140);&quot;&gt;GitHub – HMBSbige&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;博主位于办公室的落地端NAT类型使用NatTypeTester测试udp为Symmetric（NAT4），使用frpc测试tcp为Behavior No Change的EasyNAT。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img decoding=&quot;async&quot; class=&quot;alignnone size-full wp-image-9450&quot; src=&quot;https://cdn.luotianyi.vc/wp-content/uploads/2026-05-03_12-00-00.png&quot; alt=&quot;&quot; width=&quot;486&quot; height=&quot;104&quot; style=&quot;display: block; max-width: 100%; height: auto; width: auto; border-radius: 5px; overflow: hidden;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;位于宿舍的入口端NAT类型使用NatTypeTester测试udp为Port Restricted Cone（NAT3），使用frpc测试tcp同样为Behavior No Change的EasyNAT。&lt;img decoding=&quot;async&quot; loading=&quot;lazy&quot; class=&quot;alignnone size-full wp-image-9451&quot; src=&quot;https://cdn.luotianyi.vc/wp-content/uploads/2026-05-03_12-00-00-1.png&quot; alt=&quot;&quot; width=&quot;467&quot; height=&quot;105&quot; style=&quot;display: block; max-width: 100%; height: auto; width: auto; border-radius: 5px; overflow: hidden;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;二者虽然实测在Tailscale中无法打洞直连，然而其nat行为却满足xtcp打洞的基础条件。&lt;/p&gt;&lt;hr style=&quot;color: rgb(49, 49, 49); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;h2 id=&quot;directory-1&quot; style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; font-size: 19px; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;二、配置文件&lt;/h2&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;frps服务端配置与常规的一致，仅用于数据交换：&lt;br/&gt;&lt;/p&gt;&lt;div id=&quot;crayon-6a9775331f07d097655863&quot; class=&quot;crayon-syntax crayon-theme-arduino-ide crayon-font-sourcecodepro crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; style=&quot;border-image: initial; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; margin: 12px 0px; outline: 0px; padding: 0px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 562.016px; color: rgb(49, 49, 49); text-wrap-mode: wrap; height: auto; border-width: 1px !important; border-style: solid !important; border-color: rgb(221, 221, 221) !important; font-size: 12px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(253, 253, 253) !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; show&quot; style=&quot;border-top: 0px; border-right: 0px; border-left: 0px; border-image: initial; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: 560.016px; position: relative; overflow: hidden; z-index: 4; border-bottom: 1px solid rgb(221, 221, 221) !important; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; background: rgb(238, 238, 238) !important; height: 18px !important; line-height: 18px !important;&quot;&gt;&lt;span class=&quot;crayon-title&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;frps.toml&lt;/span&gt;&lt;div class=&quot;crayon-tools&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; position: absolute; right: 0px; font-weight: inherit !important; height: 18px !important; line-height: 18px !important; float: right !important;&quot;&gt;&lt;span class=&quot;crayon-language&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 8px 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;YAML&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; outline: 0px; vertical-align: baseline; background: 0px center; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; margin: 0px !important; padding: 0px !important; height: auto !important;&quot;&gt;&lt;textarea wrap=&quot;soft&quot; class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;appearance: none; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 560.016px; overflow: hidden; padding: 0px 5px; margin: 0px; height: 154px; position: absolute; opacity: 0; border-width: 0px; border-style: initial; border-color: initial; box-sizing: border-box; border-radius: 0px; box-shadow: none; text-wrap-mode: nowrap; overflow-wrap: normal; resize: none; color: rgb(0, 0, 0); background: rgb(255, 255, 255); tab-size: 4; z-index: 0; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; font-size: 12px !important; line-height: 15px !important;&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; width: 560.016px; overflow: hidden; position: relative; z-index: 1; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important;&quot;&gt;&lt;table class=&quot;crayon-table&quot; width=&quot;NaN&quot;&gt;&lt;tbody style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr class=&quot;crayon-row firstRow&quot; style=&quot;font-style: inherit; font-weight: inherit; outline: 0px; background: 0px center; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums&quot; data-settings=&quot;show&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background-image: initial !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; color: rgb(212, 212, 212) !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; text-align: left; text-wrap-mode: nowrap; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-1&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-3&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-5&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-7&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-8&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f07d097655863-9&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; background: 0px center; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot; width=&quot;542&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f07d097655863-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## 服务端连接信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f07d097655863-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;bindPort&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;7700&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f07d097655863-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;auth&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;token&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_auth_token&amp;quot;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f07d097655863-5&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## 服务端面板信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f07d097655863-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;webServer&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;addr&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;0.0.0.0&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f07d097655863-7&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;webServer&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;port&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;7500&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f07d097655863-8&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;webServer&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;user&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_admin_username&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f07d097655863-9&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;webServer&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;password&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_admin_password&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;位于办公室的frpc落地端配置：&lt;br/&gt;&lt;/p&gt;&lt;div id=&quot;crayon-6a9775331f081258651709&quot; class=&quot;crayon-syntax crayon-theme-arduino-ide crayon-font-sourcecodepro crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; style=&quot;border-image: initial; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; margin: 12px 0px; outline: 0px; padding: 0px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 562.016px; color: rgb(49, 49, 49); text-wrap-mode: wrap; height: auto; border-width: 1px !important; border-style: solid !important; border-color: rgb(221, 221, 221) !important; font-size: 12px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(253, 253, 253) !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; show&quot; style=&quot;border-top: 0px; border-right: 0px; border-left: 0px; border-image: initial; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: 560.016px; position: relative; overflow: hidden; z-index: 4; border-bottom: 1px solid rgb(221, 221, 221) !important; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; background: rgb(238, 238, 238) !important; height: 18px !important; line-height: 18px !important;&quot;&gt;&lt;span class=&quot;crayon-title&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;frpc.toml&lt;/span&gt;&lt;div class=&quot;crayon-tools&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; position: absolute; right: 0px; font-weight: inherit !important; height: 18px !important; line-height: 18px !important; float: right !important;&quot;&gt;&lt;span class=&quot;crayon-language&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 8px 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;YAML&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; outline: 0px; vertical-align: baseline; background: 0px center; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; margin: 0px !important; padding: 0px !important; height: auto !important;&quot;&gt;&lt;textarea wrap=&quot;soft&quot; class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;appearance: none; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 560.016px; overflow: hidden; padding: 0px 5px; margin: 0px; height: 319px; position: absolute; opacity: 0; border-width: 0px; border-style: initial; border-color: initial; box-sizing: border-box; border-radius: 0px; box-shadow: none; text-wrap-mode: nowrap; overflow-wrap: normal; resize: none; color: rgb(0, 0, 0); background: rgb(255, 255, 255); tab-size: 4; z-index: 0; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; font-size: 12px !important; line-height: 15px !important;&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; width: 560.016px; overflow: hidden; position: relative; z-index: 1; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important;&quot;&gt;&lt;table class=&quot;crayon-table&quot; width=&quot;NaN&quot;&gt;&lt;tbody style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr class=&quot;crayon-row firstRow&quot; style=&quot;font-style: inherit; font-weight: inherit; outline: 0px; background: 0px center; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums&quot; data-settings=&quot;show&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background-image: initial !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; color: rgb(212, 212, 212) !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; text-align: left; text-wrap-mode: nowrap; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-1&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-3&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-5&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-7&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-8&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-9&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;9&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-10&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;10&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-11&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;11&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-12&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;12&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-13&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;13&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-14&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;14&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-15&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;15&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-16&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;16&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-17&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;17&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-18&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;18&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f081258651709-19&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;19&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f081258651709-20&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; background: 0px center; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot; width=&quot;535&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## frps服务端信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;serverAddr&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;1.1.1.1&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;serverPort&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;7700&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;auth&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;token&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_auth_token&amp;quot;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## stun打洞服务器信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-7&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;natHoleStunServer&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;stun.easyvoip.com:3478&amp;quot;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-9&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## 转发落地信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-10&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;[[proxies]&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-11&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 配置名称及类型&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-12&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;name&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;p2p_proxy&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-13&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;type&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;xtcp&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-14&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 转发到目标IP及端口&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-15&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;localIP&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;127.0.0.1&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-16&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;localPort&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;443&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-17&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 配置密钥&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-18&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;secretKey&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_secert&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f081258651709-19&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 禁止NAT穿越虚拟组网&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f081258651709-20&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;natTraversal&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;disableAssistedAddrs&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;true&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;位于宿舍的frpc访问端配置：&lt;br/&gt;&lt;/p&gt;&lt;div id=&quot;crayon-6a9775331f083654413266&quot; class=&quot;crayon-syntax crayon-theme-arduino-ide crayon-font-sourcecodepro crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; style=&quot;border-image: initial; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; margin: 12px 0px; outline: 0px; padding: 0px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 562.016px; color: rgb(49, 49, 49); text-wrap-mode: wrap; height: auto; border-width: 1px !important; border-style: solid !important; border-color: rgb(221, 221, 221) !important; font-size: 12px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(253, 253, 253) !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; show&quot; style=&quot;border-top: 0px; border-right: 0px; border-left: 0px; border-image: initial; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: 560.016px; position: relative; overflow: hidden; z-index: 4; border-bottom: 1px solid rgb(221, 221, 221) !important; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; background: rgb(238, 238, 238) !important; height: 18px !important; line-height: 18px !important;&quot;&gt;&lt;span class=&quot;crayon-title&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;frpc.toml&lt;/span&gt;&lt;div class=&quot;crayon-tools&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; position: absolute; right: 0px; font-weight: inherit !important; height: 18px !important; line-height: 18px !important; float: right !important;&quot;&gt;&lt;span class=&quot;crayon-language&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 8px 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;YAML&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; outline: 0px; vertical-align: baseline; background: 0px center; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; margin: 0px !important; padding: 0px !important; height: auto !important;&quot;&gt;&lt;textarea wrap=&quot;soft&quot; class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;appearance: none; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 560.016px; overflow: hidden; padding: 0px 5px; margin: 0px; height: 349px; position: absolute; opacity: 0; border-width: 0px; border-style: initial; border-color: initial; box-sizing: border-box; border-radius: 0px; box-shadow: none; text-wrap-mode: nowrap; overflow-wrap: normal; resize: none; color: rgb(0, 0, 0); background: rgb(255, 255, 255); tab-size: 4; z-index: 0; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; font-size: 12px !important; line-height: 15px !important;&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; width: 560.016px; overflow: hidden; position: relative; z-index: 1; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important;&quot;&gt;&lt;table class=&quot;crayon-table&quot; width=&quot;NaN&quot;&gt;&lt;tbody style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr class=&quot;crayon-row firstRow&quot; style=&quot;font-style: inherit; font-weight: inherit; outline: 0px; background: 0px center; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums&quot; data-settings=&quot;show&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background-image: initial !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; color: rgb(212, 212, 212) !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; text-align: left; text-wrap-mode: nowrap; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-1&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-3&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-5&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-7&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-8&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-9&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;9&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-10&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;10&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-11&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;11&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-12&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;12&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-13&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;13&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-14&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;14&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-15&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;15&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-16&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;16&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-17&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;17&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-18&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;18&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-19&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;19&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-20&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;20&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f083654413266-21&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;21&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f083654413266-22&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;22&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; background: 0px center; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot; width=&quot;535&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## frps服务端信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;serverAddr&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;1.1.1.1&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;serverPort&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;7700&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;auth&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;token&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_auth_token&amp;quot;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-6&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## stun打洞服务器信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-7&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;natHoleStunServer&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;stun.easyvoip.com:3478&amp;quot;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-9&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;## 转发入口信息&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-10&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;[[visitors]&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-11&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 配置名称及类型&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-12&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;name&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;p2p_visitor&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-13&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;type&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;xtcp&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-14&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 对应落地端配置名称&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-15&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;serverName&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;p2p_xtcp&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-16&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 配置密钥&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-17&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;secretKey&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;my_secert&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-18&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 转发至本机的入口监听&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-19&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;bindAddr&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-i &quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;&amp;quot;0.0.0.0&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-20&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;bindPort&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;443&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f083654413266-21&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-c&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #888888 !important;&quot;&gt;# 禁止NAT穿越虚拟组网&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f083654413266-22&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;natTraversal&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;.&lt;/span&gt;disableAssistedAddrs&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;=&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #006FE0 !important;&quot;&gt; &lt;/span&gt;true&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;服务端frps与两侧客户端frpc配置完成后，访问该端口即可触发握手流程，成功后会提示successful。部分软件（如rustdesk）可能无法主动出发握手流程，可使用tcping类工具进行手动触发后再进行连接。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img decoding=&quot;async&quot; loading=&quot;lazy&quot; class=&quot;alignnone size-full wp-image-9447&quot; src=&quot;https://cdn.luotianyi.vc/wp-content/uploads/2026-05-03_11-44-28.png&quot; alt=&quot;&quot; width=&quot;890&quot; height=&quot;197&quot; style=&quot;display: block; max-width: 100%; height: auto; width: auto; border-radius: 5px; overflow: hidden;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在配置文件中，如果你的两端位于ZeroTier、Tailscale或EasyTier等虚拟局域网内，则必须保留natTraversal配置，否则xtcp可能会通过虚拟局域网进行打洞。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;此外，满足xtcp使用的stun服务器需开启RFC5780支持，并使用两个IP监听3478与3479端口分别用于请求和信息返回，无法使用常规仅使用3478端口的公开stun服务器。如需使用Coturn自建，请参考这条issue（&lt;a href=&quot;https://github.com/fatedier/frp/issues/3469#issuecomment-2407152665&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(123, 135, 140);&quot;&gt;点击前往&lt;/a&gt;）。其中，验证可用的stun服务器如下：&lt;br/&gt;&lt;/p&gt;&lt;div id=&quot;crayon-6a9775331f084709680683&quot; class=&quot;crayon-syntax crayon-theme-arduino-ide crayon-font-sourcecodepro crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; style=&quot;border-image: initial; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; margin: 12px 0px; outline: 0px; padding: 0px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 562.016px; color: rgb(49, 49, 49); text-wrap-mode: wrap; height: auto; border-width: 1px !important; border-style: solid !important; border-color: rgb(221, 221, 221) !important; font-size: 12px !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(253, 253, 253) !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; show&quot; style=&quot;border-top: 0px; border-right: 0px; border-left: 0px; border-image: initial; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: 560.016px; position: relative; overflow: hidden; z-index: 4; border-bottom: 1px solid rgb(221, 221, 221) !important; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; background: rgb(238, 238, 238) !important; height: 18px !important; line-height: 18px !important;&quot;&gt;&lt;span class=&quot;crayon-title&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 4px !important; vertical-align: baseline; float: left; height: inherit; line-height: inherit !important; color: #999999 !important;&quot;&gt;stun server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; outline: 0px; vertical-align: baseline; background: 0px center; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; margin: 0px !important; padding: 0px !important; height: auto !important;&quot;&gt;&lt;textarea wrap=&quot;soft&quot; class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;appearance: none; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 560.016px; overflow: hidden; padding: 0px 5px; margin: 0px; height: 79px; position: absolute; opacity: 0; border-width: 0px; border-style: initial; border-color: initial; box-sizing: border-box; border-radius: 0px; box-shadow: none; text-wrap-mode: nowrap; overflow-wrap: normal; resize: none; color: rgb(0, 0, 0); background: rgb(255, 255, 255); tab-size: 4; z-index: 0; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important; font-size: 12px !important; line-height: 15px !important;&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; width: 560.016px; overflow: hidden; position: relative; z-index: 1; font-family: &amp;quot;Source Code Pro&amp;quot;, source_code_proregular, Arial, sans-serif !important;&quot;&gt;&lt;table class=&quot;crayon-table&quot; width=&quot;NaN&quot;&gt;&lt;tbody style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr class=&quot;crayon-row firstRow&quot; style=&quot;font-style: inherit; font-weight: inherit; outline: 0px; background: 0px center; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums&quot; data-settings=&quot;show&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background-image: initial !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; color: rgb(212, 212, 212) !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;border: 0px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background: 0px center; text-align: left; text-wrap-mode: nowrap; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f084709680683-1&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f084709680683-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-6a9775331f084709680683-3&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; text-align: center; height: inherit; line-height: inherit !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-6a9775331f084709680683-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; outline: 0px; text-align: center; background: 0px center; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot; width=&quot;542&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important; line-height: 15px !important;&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f084709680683-1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;stun&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;easyvoip&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;crayon-cn&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;3478&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f084709680683-2&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;stun&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;voipstunt&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;crayon-cn&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;3478&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-6a9775331f084709680683-3&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; background: 0px center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;stun&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;cheapvoip&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;crayon-cn&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;3478&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-6a9775331f084709680683-4&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; background: rgb(250, 250, 250) !important; line-height: inherit !important;&quot;&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;stun&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;voipgain&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #333333 !important;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;crayon-cn&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-weight: inherit !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; height: inherit; line-height: inherit !important; color: #222222 !important;&quot;&gt;3478&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr style=&quot;color: rgb(49, 49, 49); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;h2 id=&quot;directory-2&quot; style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; font-size: 19px; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;三、结语&lt;/h2&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在国内的网络互联中，UDP常常受到QoS的影响，这也导致Tailscale一类以UDP为传输协议的组网工具一定的局限性。实测从宿舍到校园网的端口通过xtcp连接延迟仅3ms，单线程测速更是一秒内打满博主本地的200M带宽，rustdesk也终于丝滑流畅。&lt;/p&gt;&lt;p style=&quot;border: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, STHeiti, &amp;quot;WenQuanYi Micro Hei&amp;quot;, Helvetica, Arial, sans-serif; margin-top: 20px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(49, 49, 49); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;之前其实挺想研究下更符合国情的EasyTier的，可惜目前Tailscale网络已过于庞大，等一个契机吧~&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://luotianyi.vc/9435.html&quot;&gt;【frp】双端内网环境XTCP协议P2P打洞互通实践 – Luminous&amp;#39; Home&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 02 Sep 2026 09:03:58 +0800</pubDate></item><item><title>如何搭建自己的STUN服务器</title><link>https://blog.hbhtyw.com/?id=29</link><description>&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我们前面在使用 libdatachannel 的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;client&lt;/code&gt;&amp;nbsp;示例进行 P2P 通信的时候，使用的都是第三方的 STUN 服务器，如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;./examples/client/client&amp;nbsp;-w&amp;nbsp;175.178.179.175&amp;nbsp;-s&amp;nbsp;stun4.l.google.com&amp;nbsp;-t&amp;nbsp;3478&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;上面我们使用了&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stun4.l.google.com&lt;/code&gt;&amp;nbsp;作为 STUN 服务器。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;STUN 服务器的作用是让 内网的机器能获取到自己在公网上对应的 UDP 通道信息，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client/1-5.png&quot; alt=&quot;1-5&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;上图是 Wireshark 抓包的效果图，可以看到，内网机器往&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stun4.l.google.com&lt;/code&gt;（142.251.2.127） 发送了一个 STUN Binding 的包，这是通过 UDP 传输的，所以这个请求会在运营商里面打开一个&lt;span style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-weight: 700; font-size: inherit;&quot;&gt;临时的 UDP 通道&lt;/span&gt;，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_p2p/1-1.jpg&quot; alt=&quot;1-1&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;内网机器就是通过这个&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-weight: 700; font-size: inherit;&quot;&gt;临时的 UDP 通道&lt;/span&gt;&amp;nbsp;跟 STUN 服务器通信。所以这个 UDP 通道的信息，STUN 服务器是知道的。因此 STUN 服务器可以把这个 UDP 通道信息 放在 STUN Response 里面返回给 内网的机器。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;上图中，我的笔记本在公网中的 UDP 通道信息是&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;120.231.13.215:8164&lt;/code&gt;。这个 UDP 通道是临时的，可能会被运营商回收。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;其他的终端有一定的概率 可以通过&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;120.231.13.215:8164&lt;/code&gt;&amp;nbsp;这个 UDP 通道跟我的笔记本进行通信。如果能成功通信，就称为 P2P 打洞成功。&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;由于上面这些 STUN 服务器都是第三方的，使用起来不一定可靠。所以本文就来介绍一下&lt;span style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-weight: 700; font-size: inherit;&quot;&gt;如何搭建自己的 STUN 服务器&lt;/span&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我这里使用的是&amp;nbsp;&lt;a href=&quot;https://www.stunprotocol.org/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-decoration-line: none; font-size: inherit; color: rgb(65, 131, 196); background: 0px 0px;&quot;&gt;STUNTMAN&lt;/a&gt;&amp;nbsp;开源项目的&amp;nbsp;&lt;a href=&quot;https://github.com/jselbie/stunserver/releases/tag/version1.2.13&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-decoration-line: none; font-size: inherit; color: rgb(65, 131, 196); background: 0px 0px;&quot;&gt;version1.2.13&lt;/a&gt;&amp;nbsp;版本的源代码。STUN 服务器需要部署在公网上的，请在云服务器上执行下面的操作。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我们需要先安装一下依赖。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;sudo&amp;nbsp;apt-get&amp;nbsp;install&amp;nbsp;g++&amp;nbsp;make&amp;nbsp;libboost-dev&amp;nbsp;libssl-dev&amp;nbsp;&amp;nbsp;libc6-dev&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;不过这里有一个问题，通常情况，你安装的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;openssl&lt;/code&gt;&amp;nbsp;版本是 3.0 的，而&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;STUNMAN&lt;/code&gt;&amp;nbsp;需要低于 1.1.0 的版本。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这时候我通常是不删除&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;apt&lt;/code&gt;&amp;nbsp;安装的 openssl 3.0 版本，我让它保留下来，避免影响到其他软件。我会下载一下 openssl 1.0.1s 版本的源代码，然后编译，再把他们安装到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;/usr/local/ssl&lt;/code&gt;&amp;nbsp;的目录。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这样就不会影响到原来的 openssl 3.0 版本，我需要用 openssl 1.0.1s 的时候临时设置一下环境变量即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这个环境变量的设置也是很有讲究的，我们必须把&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;/usr/local/ssl&lt;/code&gt;&amp;nbsp;目录设置在最前面，这样 编译器，链接器，加载器 才会优先选择 openssl 1.0.1s 的库&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我们先下载一下 openssl 1.0.1s 版本的代码，下载地址如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_1s&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;下载完之后，解压，然后开始编译。命令如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;cd&amp;nbsp;~/Documents/openssl-OpenSSL_1_0_1s
./config
make&amp;nbsp;-j4
sud&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通常安装成功之后，你就能在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;/usr/local/ssl/lib&lt;/code&gt;&amp;nbsp;目录看到 openssl 1.0.1s 版本的库了，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_stun/1-1.png&quot; alt=&quot;1-1&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;由于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;STUNTMAN&lt;/code&gt;&amp;nbsp;没有使用&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;pkgconfig&lt;/code&gt;&amp;nbsp;里面的配置文件，我们需要改他的代码，加上&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;openssl&lt;/code&gt;&amp;nbsp;的路径，如下：&lt;/p&gt;&lt;h5 id=&quot;1，修改-commoninc&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 1em; orphans: 3; widows: 3; break-after: avoid; margin-top: 1.275em; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1，修改 common.inc&lt;/h5&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;#BOOST_INCLUDE&amp;nbsp;:=&amp;nbsp;-I/Users/jselbie/boost_1_63_0
#OPENSSL_INCLUDE&amp;nbsp;:=&amp;nbsp;-I/Users/jselbie/openssl/include
修改为
BOOST_INCLUDE&amp;nbsp;:=&amp;nbsp;-I/usr/include/boost
OPENSSL_INCLUDE&amp;nbsp;:=&amp;nbsp;-I/usr/local/ssl/include&lt;/pre&gt;&lt;h5 id=&quot;2，修改所有的-makefile&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 1em; orphans: 3; widows: 3; break-after: avoid; margin-top: 1.275em; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2，修改所有的 Makefile&lt;/h5&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我们要在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;LIB_PATH&lt;/code&gt;&amp;nbsp;后面全部加上&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;-L/usr/local/ssl/lib/&lt;/code&gt;，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_stun/1-2.png&quot; alt=&quot;1-2&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-weight: 700; font-size: inherit;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;STUNTMAN&lt;/code&gt;&amp;nbsp;里面有好几个&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;Makefile&lt;/code&gt;，一定要全部都加上&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;ssl&lt;/code&gt;&amp;nbsp;的路径。&lt;/span&gt;&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;现在我们终于可以开始编译&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;STUNMAN&lt;/code&gt;&amp;nbsp;了，命令如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;cd&amp;nbsp;~/Documents/stunserver-version1.2.13

make&amp;nbsp;-j4&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;编译成功之后就可以看到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stunserver&lt;/code&gt;，&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stunclient&lt;/code&gt;&amp;nbsp;等可执行文件，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_stun/1-3.png&quot; alt=&quot;1-3&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;由于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stunserver&lt;/code&gt;&amp;nbsp;是静态链接到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;openssl&lt;/code&gt;&amp;nbsp;的，所以我们不需要设置&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;LD_LIBRARY_PATH&lt;/code&gt;&amp;nbsp;环境变量 也可以正常启动。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;export&amp;nbsp;LD_LIBRARY_PATH=/usr/local/ssl/lib/:$LD_LIBRARY_PATH&lt;/pre&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stunserver&lt;/code&gt;&amp;nbsp;默认是绑定在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;3478&lt;/code&gt;&amp;nbsp;端口的，我们可以在局域网用&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;stunclient&lt;/code&gt;&amp;nbsp;来获取一下自己的 IP 信息。如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_stun/1-5.png&quot; alt=&quot;1-5&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;现在我们就能用自己的 STUN 服务器来进行 P2P 通信了，命令如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;./examples/client/client&amp;nbsp;-w&amp;nbsp;175.178.179.175&amp;nbsp;-s&amp;nbsp;175.178.179.175&amp;nbsp;-t&amp;nbsp;3478&lt;/pre&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;补充：我是在 ubuntu 系统上做的实验，有些读者是在 Debian 系统上做的实验。在 Debian 上编译&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;openssl&lt;/code&gt;&amp;nbsp;经常会遇到下面这个错误。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 16px; text-wrap-mode: wrap; break-inside: avoid; direction: ltr; margin-top: 0px; margin-bottom: 1.275em; padding: 0.85em 1em; border: none; color: rgb(51, 51, 51); overflow: auto; overflow-wrap: normal; background-color: rgb(247, 247, 247); letter-spacing: 0.2px;&quot;&gt;undefined&amp;nbsp;reference&amp;nbsp;to&amp;nbsp;`dlopen&amp;#39;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;dlopen&lt;/code&gt;&amp;nbsp;是 DL 库的一个函数，DL 的全称是&amp;nbsp;&lt;a href=&quot;https://tldp.org/HOWTO/Program-Library-HOWTO/dl-libraries.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-decoration-line: none; font-size: inherit; color: rgb(65, 131, 196); background: 0px 0px;&quot;&gt;Dynamically Loaded (DL) Libraries&lt;/a&gt;，这是一个系统库来的，通常是&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;/lib64/ld-linux-x86-64.so.2&lt;/code&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;每个操作系统基本都有这个库的，找不到是因为 Debian 上的链接工具可能有点不完善。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;解决方法就是，你需要修改一下&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;common.inc&lt;/code&gt;，把&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;-ldl&lt;/code&gt;&amp;nbsp;加在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 0.85em; break-inside: avoid; direction: ltr; margin: 0px; padding: 0.2em; border: none; color: inherit; background-color: rgb(247, 247, 247);&quot;&gt;-lcrypto&lt;/code&gt;&amp;nbsp;后面就行了，一定要加在后面，不能加在前面，如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://srs.xianwaizhiyin.net/ffmpeg_webrtc/libdatachannel_client_stun/1-6.png&quot; alt=&quot;1-4&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border: 0px; display: block; margin: 5px auto; font-size: inherit; break-inside: avoid; max-width: 100%;&quot;/&gt;&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; height: 4px; font-size: 16px; padding: 0px; margin: 1.7em 0px; background-color: rgb(231, 231, 231); border: none; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; orphans: 3; widows: 3; margin-top: 0px; margin-bottom: 0.85em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;除了 STUNTMAN，还有另外两个开源项目可以作为 STUN 服务器，如下：&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-size: 16px; margin-bottom: 0.85em; padding: 0px 0px 0px 2em; color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; letter-spacing: 0.2px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/paullouisageneau/violet&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-decoration-line: none; font-size: inherit; color: rgb(65, 131, 196); background: 0px 0px;&quot;&gt;Violet&lt;/a&gt;，libdatachannel 作者 Paul-Louis Ageneau 的另一款经典之作。轻量级的 STUN/TURN 服务器&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/coturn/coturn&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-decoration-line: none; font-size: inherit; color: rgb(65, 131, 196); background: 0px 0px;&quot;&gt;coturn&lt;/a&gt;，一款重量级的 STUN/TURN 服务器，非常流行。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 31 Aug 2026 16:46:21 +0800</pubDate></item><item><title>Smarty中模板中逻辑运算符</title><link>https://blog.hbhtyw.com/?id=28</link><description>&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;eq&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;相等&lt;/p&gt;&lt;p&gt;ne、neq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;不相等&lt;/p&gt;&lt;p&gt;gt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;大于&lt;/p&gt;&lt;p&gt;lt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;小于&lt;/p&gt;&lt;p&gt;gte、ge&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;大于等于&lt;/p&gt;&lt;p&gt;lte、le&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;小于等于&lt;/p&gt;&lt;p&gt;not&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;非&lt;/p&gt;&lt;p&gt;mod&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;求模&lt;/p&gt;</description><pubDate>Wed, 26 Aug 2026 11:42:16 +0800</pubDate></item><item><title>开源可私有部署内网穿透工具：VNT</title><link>https://blog.hbhtyw.com/?id=27</link><description>&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;VNT 是一款基于 Rust 语言开发的开源内网穿透及组网工具，主要用于实现异地设备的虚拟组网和内网穿透。它通过高效的网络技术和灵活的配置，为用户提供了安全、稳定且易于使用的组网解决方案。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;类似于以前介绍的 frp、zerotier、nps 等穿透工具，同样支持私有部署服务端，客户端只需要一行命令即可加入组网。&lt;/p&gt;&lt;h2 style=&quot;font-size: 1.2em; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-1&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;特点&lt;/h2&gt;&lt;ul style=&quot;padding-left: 30px; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;高性能&lt;/strong&gt;: 使用rust开发，内存和CPU占用率低，速度快&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;跨平台&lt;/strong&gt;: 支持Windows/MacOS/Linux/Android&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;和WireGuard互通&lt;/strong&gt;: 能使用WireGuard接入VNT网络，iOS可以使用这种方式接入&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;穿透多层NAT&lt;/strong&gt;: 多种打洞策略，轻松穿透锥形网络，遇到对称网络也有一战之力&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;应对运营商QOS&lt;/strong&gt;: 多通道UDP，能有效减缓UDP QOS&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;支持UDP/TCP/WebSocket等协议&lt;/strong&gt;: 遭遇UDP丢包严重的时候，总有一个协议适合你&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;ipv4/ipv6双协议栈&lt;/strong&gt;: 可以使用ipv6连接网络&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;域名解析优化&lt;/strong&gt;: 可以利用txt记录解析动态公网IP、动态公网端口，家庭宽带也能轻松自建服务器&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;安全&lt;/strong&gt;: 支持AES-GCM、CHACHA20-POLY1305等多种加密算法，端到端加密保证数据安全&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;优化广播&lt;/strong&gt;: 自适应的点对点广播，降低延迟的同时减少服务器的压力，适合广播/组播游戏&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;数据压缩&lt;/strong&gt;: 可开启数据压缩减少网络压力&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;font-size: 1.2em; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-2&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;使用场景&lt;/h2&gt;&lt;ul style=&quot;padding-left: 30px; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;异地组网&lt;/strong&gt;：可将不同地理位置的设备组建成一个虚拟局域网，实现设备间的直接通信。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;内网服务访问&lt;/strong&gt;：用于访问内网中的服务，如 NAS、监控摄像头、服务器等等。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;联机游戏&lt;/strong&gt;：支持点对点和网对网的联机游戏。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;搭建演示服务：&lt;/strong&gt;将内网服务通过一台有公网 IP 的服务器统一对外暴露演示。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;font-size: 1.2em; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-3&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;开源地址&lt;/h2&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;width: 1381.3px; text-wrap-mode: wrap; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;官方网站&lt;/b&gt;：&lt;a href=&quot;https://rustvnt.com/&quot; target=&quot;_blank&quot; textvalue=&quot;https://rustvnt.com/&quot;&gt;https://rustvnt.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;客户端主程序&lt;/strong&gt;：&lt;a href=&quot;https://github.com/vnt-dev/vnt&quot; target=&quot;_blank&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;https://github.com/vnt-dev/vnt&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;中继服务端程序&lt;/strong&gt;：&amp;nbsp;&lt;a href=&quot;https://github.com/vnt-dev/vnts&quot; target=&quot;_blank&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;https://github.com/vnt-dev/vnts&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;用户界面程序&lt;/strong&gt;：&lt;a href=&quot;https://github.com/vnt-dev/VntApp&quot; target=&quot;_blank&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;https://github.com/vnt-dev/VntApp&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-17-53-0cc69f298025055f78d2e524d23d5961-0f0fb1.jpg&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-17-53-0cc69f298025055f78d2e524d23d5961-0f0fb1.jpg&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;font-size: 1.2em; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;食用教程&lt;/h2&gt;&lt;h3 style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-5&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;服务端搭建&lt;/h3&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;本文以ubuntu22.04，用 docke 一键部署 vnts 服务端程序。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;提前放开端口：tcp/udp：29872（vnts 服务端端口），tcp：29870（vnts web 管理页面端口按需开启）&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;docker-compose 一键部署：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;services:
&amp;nbsp;&amp;nbsp;vnts:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;hotwa/vnt-server:latest
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;container_name:&amp;nbsp;vnts
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;restart:&amp;nbsp;unless-stopped

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;加入自定义网络并指定静态&amp;nbsp;IP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;networks:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;headscale_network:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ipv4_address:&amp;nbsp;172.32.0.13

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;29872:29872/tcp&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;数据通道&amp;nbsp;TCP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;29872:29872/udp&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;数据通道&amp;nbsp;UDP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;29870:29870/tcp&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;Web&amp;nbsp;管理界面

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volumes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;./vnts-data:/app/key&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;用于存放服务端密钥对
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;./vnts-log:/app/log&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;日志目录

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;environment:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;——————&amp;nbsp;必填项&amp;nbsp;——————
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_PORT:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;29872&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;数据通道口
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_WEB_PORT:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;29870&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;Web&amp;nbsp;管理口
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_USERNAME:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;admin&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;管理界面用户名
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_PASSWORD:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;admin&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;管理界面密码
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_WHITE_TOKEN:&amp;nbsp;&amp;quot;lcry&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;连接&amp;nbsp;token&amp;nbsp;白名单

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;———&amp;nbsp;可选项，根据需要取消注释&amp;nbsp;———
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#VNT_FINGER:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;1&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;开启指纹校验（短&amp;nbsp;flag&amp;nbsp;`--finger`）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_GATEWAY:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;10.26.0.1&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;子网网关
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VNT_NETMASK:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;255.255.255.0&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;子网掩码
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#VNT_WG_SECRET_KEY:&amp;nbsp;&amp;quot;&amp;lt;Base64&amp;nbsp;编码的私钥&amp;gt;&amp;quot;&amp;nbsp;&amp;nbsp;#&amp;nbsp;WireGuard&amp;nbsp;私钥

networks:
&amp;nbsp;&amp;nbsp;headscale_network:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;driver:&amp;nbsp;bridge
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ipam:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;config:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;subnet:&amp;nbsp;172.32.0.0/24&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;执行&amp;nbsp;&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;docker compose up -d&lt;/code&gt;，访问服务器ip:29870 可访问web界面，输入账号密码admin/admin。&lt;/p&gt;&lt;h3 style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-6&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;客户端连接&lt;/h3&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;客户端提供了各个端使用， 我这里只演示windows、linux、macos三端连接，手机上也是下载对应配置自己的中继服务器即可使用。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;更多可选配置可执行&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnt-cli -h&lt;/code&gt;&amp;nbsp;查看&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;命令好行客户端下载地址：&lt;a href=&quot;https://github.com/vnt-dev/vnt/releases&quot; target=&quot;_blank&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;https://github.com/vnt-dev/vnt/releases&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot;&gt;&lt;strong&gt;macOS&lt;/strong&gt;:&lt;/p&gt;&lt;ul style=&quot;padding-left: 30px; color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;如果你的机器是 Apple Silicon (M1, M2 等)，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-aarch64-apple-darwin-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果你的机器是 Intel 处理器，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-x86_64-apple-darwin-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot;&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&lt;/p&gt;&lt;ul style=&quot;padding-left: 30px; color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;对于大多数现代 Linux 发行版（如 Ubuntu），如果你使用的是 64 位处理器，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-x86_64-unknown-linux-musl-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果使用 32 位处理器，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-i686-pc-windows-msvc-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px;&quot;&gt;对于 ARM 架构（如 Raspberry Pi），选择：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-arm-unknown-linux-musleabi-v1.2.12.tar.gz&lt;/code&gt;（适用于 ARMv5）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-arm-unknown-linux-musleabihf-v1.2.12.tar.gz&lt;/code&gt;（适用于 ARMv7，带硬浮点）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-armv7-unknown-linux-musleabi-v1.2.12.tar.gz&lt;/code&gt;（适用于 ARMv7，不带硬浮点）&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p style=&quot;color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot;&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&lt;/p&gt;&lt;ul style=&quot;padding-left: 30px; color: rgb(85, 85, 85); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;对于 64 位 Windows，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-x86_64-pc-windows-msvc-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;对于 32 位 Windows，下载：&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;vnts-i686-pc-windows-msvc-v1.2.12.tar.gz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;Windows 和 安卓 GUI 客户端下载地址：&lt;a href=&quot;https://github.com/vnt-dev/VntApp/releases&quot; target=&quot;_blank&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;https://github.com/vnt-dev/VntApp/releases&lt;/a&gt;&lt;/p&gt;&lt;h4 style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-7&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;执行命令&lt;/h4&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;命令格式：&amp;nbsp;&lt;code style=&quot;font-family: Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 0.9em; background: rgb(247, 243, 247); padding: 2px 4px; color: rgb(185, 74, 72);&quot;&gt;./vnt-cli -s 服务端IP:29872 -k [组网编号] --cmd&lt;/code&gt;，组网编号就是相同的组网编号会加入到一个局域网（&lt;strong&gt;这个编号自定义的话必须是服务端VNT_WHITE_TOKEN 配置允许的&lt;/strong&gt;）。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;linux 执行：&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-30-15-46df7758185e5a542a50b51d44846a32-2fb77e.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-30-15-46df7758185e5a542a50b51d44846a32-2fb77e.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;macos 执行：&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-31-12-8bc451cc23a12ee1753d96bb34979198-0ed3ff.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-31-12-8bc451cc23a12ee1753d96bb34979198-0ed3ff.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;windows 因为要安装各种依赖啥的，直接使用 GUI 工具配置：&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-32-47-f7709074a203451ac2ad688586e8e40b-780d7a.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-32-47-f7709074a203451ac2ad688586e8e40b-780d7a.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;h3 style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-8&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;组网测试&lt;/h3&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;最后测试连通性以及后台可看见拓扑图。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-35-35-74b4a82850462dd4d37045cc9cbf9c79-4da43d.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-35-35-74b4a82850462dd4d37045cc9cbf9c79-4da43d.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;互相 ping 通。&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-37-01-5c3b579cc93e777807080dc0a11f3fe9-27a1e5.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-37-01-5c3b579cc93e777807080dc0a11f3fe9-27a1e5.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-39-29-e4ae589013e05bf82427194aeb266854-50aa6b.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-39-29-e4ae589013e05bf82427194aeb266854-50aa6b.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-40-16-dfafcd13375928c0d90b108109a0f91c-8ca689.png&quot; data-fancybox=&quot;gallery&quot; style=&quot;color: rgb(51, 84, 170); border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: solid; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(238, 238, 238); border-left-color: initial; border-image: initial; text-decoration-line: none;&quot;&gt;&lt;img src=&quot;https://img-upyun.51it.wang/img/2025/09/07-20-40-16-dfafcd13375928c0d90b108109a0f91c-8ca689.png&quot; alt=&quot;开源可私有部署内网穿透工具：VNT&quot; title=&quot;点击放大图片&quot; style=&quot;max-width: 100%;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2 style=&quot;font-size: 1.2em; color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;cl-offset&quot; name=&quot;cl-9&quot; style=&quot;color: rgb(51, 84, 170); border: 0px; position: relative; display: block; top: -51px; height: 0px;&quot;&gt;&lt;/a&gt;总结&lt;/h2&gt;&lt;p style=&quot;color: rgb(68, 68, 68); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过 vnt 可以自建 vnts 服务端，通过将多个网络接入一个局域网，可用于一个公网服务器资源不够的情况下，使用内网机器组网统一服务暴露降低成本，是中小企业的不二选择，简单高效组网。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 18 Aug 2026 16:54:41 +0800</pubDate></item><item><title>利用VLMCSD部署本地KMS服务器</title><link>https://blog.hbhtyw.com/?id=26</link><description>&lt;p style=&quot;margin: 13px auto; padding: 0px; color: rgb(49, 70, 89); font-family: Lato, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;项目名称：VLMCSD&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;项目简介：KMS Emulator in C (Currently runs on Linux, Mac OS, iOS, Windows with or without Cygwin)&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;项目主页：&lt;a href=&quot;https://github.com/Wind4/vlmcsd&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(45, 140, 240); text-decoration-line: none; transition: 0.3s !important;&quot;&gt;https://github.com/Wind4/vlmcsd&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;软件下载：&lt;a href=&quot;https://github.com/Wind4/vlmcsd/releases&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(45, 140, 240); text-decoration-line: none; transition: 0.3s !important;&quot;&gt;https://github.com/Wind4/vlmcsd/releases&lt;/a&gt;&lt;/p&gt;&lt;h4 id=&quot;3744541147&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(49, 70, 89); font-family: Lato, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important;&quot;&gt;部署本地KMS服务器：&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;1.准备一个&amp;nbsp;Linux&amp;nbsp;环境

2.下载vlmcsd：wget&amp;nbsp;https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz

3.解压：tar&amp;nbsp;-zxvf&amp;nbsp;binaries.tar.gz

4.查看Linux物理机的CPU信息：cat&amp;nbsp;/proc/cpuinfo

5.挑选对应CPU版本的程序，一般为Intel：cd&amp;nbsp;binaries/Linux/intel/static/

6.修改权限：chmod&amp;nbsp;u+x&amp;nbsp;vlmcsd-x64-musl-static

7.运行vlmcsd：./vlmcsd-x64-musl-static

8.查看运行状态：netstat&amp;nbsp;-tupln&amp;nbsp;|grep&amp;nbsp;1688

9.放行防火墙规则：iptables&amp;nbsp;-I&amp;nbsp;INPUT&amp;nbsp;-p&amp;nbsp;tcp&amp;nbsp;-m&amp;nbsp;state&amp;nbsp;--state&amp;nbsp;NEW&amp;nbsp;-m&amp;nbsp;tcp&amp;nbsp;--dport&amp;nbsp;1688&amp;nbsp;-j&amp;nbsp;ACCEPT

10.设置开机自动启动：echo&amp;nbsp;&amp;quot;/path/vlmcsd-x64-musl-static&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/rc.local#&amp;nbsp;为了使用方便，可以将执行文件拷贝到&amp;quot;/usr/bin&amp;quot;目录下，并重命名为kms：mv&amp;nbsp;/path/vlmcsd-x64-musl-static&amp;nbsp;/usr/bin/kms&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;/usr/bin/kms&lt;/pre&gt;&lt;h2 id=&quot;h7&quot; class=&quot;markdown-h&quot; style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin: 2rem 0px 0.6rem; padding: 0px; font-size: 14px; color: rgb(34, 34, 34); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;三、激活Windows和Office&lt;/h2&gt;&lt;p style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin-top: 0px; margin-bottom: 0.7rem; padding: 0px; overflow-wrap: break-word; color: rgb(23, 35, 63); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过部署开源KMS激活服务器，可以批量激活Windows系统和Office。以下是具体激活步骤：&lt;/p&gt;&lt;h3 id=&quot;h8&quot; class=&quot;markdown-h&quot; style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin: 2rem 0px 0.6rem; padding: 0px; font-size: 14px; color: rgb(34, 34, 34); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a id=&quot;31_Windows_100&quot; style=&quot;-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px; color: rgb(66, 133, 244);&quot;&gt;&lt;/a&gt;1 激活Windows系统&lt;/h3&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px;&quot;&gt;设置KMS服务器地址&lt;/strong&gt;：在客户端设备上设置KMS服务器地址。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px;&quot;&gt;激活Windows系统&lt;/strong&gt;：使用&lt;code style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin: 0px 3px; padding: 1px 4px; border-radius: 4px; color: rgb(18, 139, 78); background-color: rgb(231, 243, 237) !important;&quot;&gt;slmgr.vbs&lt;/code&gt;命令激活Windows系统。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;#&amp;nbsp;设置KMS服务器地址
slmgr.vbs&amp;nbsp;/skms&amp;nbsp;192.168.1.100

#&amp;nbsp;激活Windows系统
slmgr.vbs&amp;nbsp;/ato&lt;/pre&gt;&lt;h3 id=&quot;h9&quot; class=&quot;markdown-h&quot; style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin: 2rem 0px 0.6rem; padding: 0px; font-size: 14px; color: rgb(34, 34, 34); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2 激活Office&lt;/h3&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px;&quot;&gt;设置KMS服务器地址&lt;/strong&gt;：在客户端设备上设置KMS服务器地址。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px;&quot;&gt;激活Office&lt;/strong&gt;：使用&lt;code style=&quot;-webkit-font-smoothing: antialiased; font-family: -apple-system, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; margin: 0px 3px; padding: 1px 4px; border-radius: 4px; color: rgb(18, 139, 78); background-color: rgb(231, 243, 237) !important;&quot;&gt;cscript&lt;/code&gt;命令激活Office。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;#&amp;nbsp;设置KMS服务器地址
cscript&amp;nbsp;ospp.vbs&amp;nbsp;/sethst:192.168.1.100

#&amp;nbsp;激活Officecscript&amp;nbsp;
ospp.vbs&amp;nbsp;/act&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 20 Jul 2026 13:37:14 +0800</pubDate></item><item><title>列出了 $_SERVER 中最重要的元素</title><link>https://blog.hbhtyw.com/?id=25</link><description>&lt;table class=&quot;ref&quot; width=&quot;1226&quot;&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 15px; border-top-color: rgb(221, 221, 221); box-sizing: border-box; background-color: rgb(255, 255, 255); vertical-align: baseline; text-align: left;&quot;&gt;元素/代码&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 15px; border-top-color: rgb(221, 221, 221); box-sizing: border-box; background-color: rgb(255, 255, 255); vertical-align: baseline; text-align: left;&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;PHP_SELF&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前执行脚本的文件名。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;GATEWAY_INTERFACE&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回服务器使用的 Common Gateway Interface (CGI) 的版本。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_ADDR&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回主机服务器的 IP 地址。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_NAME&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回主机服务器的名称（如 www.w3school.com.cn）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_SOFTWARE&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回服务器标识字符串（如 Apache/2.2.24）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_PROTOCOL&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回信息协议的名称和修订号（如 HTTP/1.1）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;REQUEST_METHOD&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回用于访问页面的请求方法（如 POST）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;REQUEST_TIME&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回请求开始的时间戳（如 1377687496）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;QUERY_STRING&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;如果页面是通过查询字符串访问的，则返回查询字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;HTTP_ACCEPT&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前请求的 Accept 头。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;HTTP_ACCEPT_CHARSET&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前请求的 Accept_Charset 头（如 utf-8,ISO-8859-1）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;HTTP_HOST&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前请求的 Host 头。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;HTTP_REFERER&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前页面的完整 URL（不可靠，因为不是所有用户代理都支持它）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;HTTPS&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;脚本是否通过安全的 HTTP 协议查询。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;REMOTE_ADDR&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回用户查看当前页面的 IP 地址。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;REMOTE_HOST&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回用户查看当前页面的主机名。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;REMOTE_PORT&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回用户在机器上用于与 Web 服务器通信的端口。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SCRIPT_FILENAME&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前执行脚本的绝对路径名。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_ADMIN&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回在 Web 服务器配置文件中为 SERVER_ADMIN 指令给定的值。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_PORT&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回服务器上 Web 服务器用于通信的端口（如 80）。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SERVER_SIGNATURE&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回添加到服务器生成页面的服务器版本和虚拟主机名。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;PATH_TRANSLATED&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前脚本基于文件系统的路径。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box; background-color: rgb(245, 245, 245);&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SCRIPT_NAME&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前脚本的路径。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; border: 0px; box-sizing: border-box;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;$_SERVER[&amp;#39;SCRIPT_URI&amp;#39;]&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 15px; box-sizing: border-box; vertical-align: text-top;&quot;&gt;返回当前页面的 URI。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 15px; margin-bottom: 15px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(61, 70, 77); font-size: 16px; box-sizing: border-box; border-radius: 8px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;PHP里有$_GET，$_POST，但是没有$_PUT，所以如果需要使用它的话，则你不得不自己模拟一下：&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;代码如下:&lt;/div&gt;&lt;div class=&quot;codebody&quot; id=&quot;code9867&quot; style=&quot;margin: 0px; padding: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); background: rgb(216, 214, 214); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap;&quot;&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;nbsp;$_PUT&amp;nbsp;=&amp;nbsp;array();
if&amp;nbsp;(&amp;#39;PUT&amp;#39;&amp;nbsp;==&amp;nbsp;$_SERVER[&amp;#39;REQUEST_METHOD&amp;#39;])&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parse_str(file_get_contents(&amp;#39;php://input&amp;#39;),&amp;nbsp;$_PUT);
&amp;nbsp;}&lt;/pre&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 15px; margin-bottom: 15px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(61, 70, 77); font-size: 16px; box-sizing: border-box; border-radius: 8px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过php://input得到的数据是raw data，所以需要用parse_str解析一下。&lt;/p&gt;&lt;p style=&quot;margin-top: 15px; margin-bottom: 15px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(61, 70, 77); font-size: 16px; box-sizing: border-box; border-radius: 8px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;不过需要说明的是，当表单是enctype=&amp;quot;multipart/form-data&amp;quot;类型的时候（就是上传文件那种类型），这种方法是无效的（此时 php://input为空），一旦PHP发现请求的Content-Type是multipart/form-data，就会无条件的代你处理表单数据，然后保存到$_FILES里，此时无法得到raw data，只能用一些偏门方法&lt;/p&gt;&lt;p style=&quot;margin-top: 15px; margin-bottom: 15px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(61, 70, 77); font-size: 16px; box-sizing: border-box; border-radius: 8px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;以apache为例，修改httpd.conf（为了使用RequestHeader语法，请先激活header模块）：&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;代码如下:&lt;/div&gt;&lt;div class=&quot;codebody&quot; id=&quot;code1581&quot; style=&quot;margin: 0px; padding: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); background: rgb(216, 214, 214); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap;&quot;&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RequestHeader&amp;nbsp;set&amp;nbsp;Content-Type&amp;nbsp;foobar&lt;/pre&gt;&lt;location style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/location&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/div&gt;&lt;p&gt;&lt;br style=&quot;margin: 0px; padding: 0px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;span style=&quot;font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;通过重置Content-Type请求头为foobar（只要不是multipart/form-data即可），此时php://input就有数据了，不过原本应有的$_FILES数据却不存在了，所以基本上只有演示上的意义，如果想得到raw data，只能自己根据数据生成，在PEAR里有类似的实现：HTTP_Request2_MultipartBody。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 15px; margin-bottom: 15px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(61, 70, 77); font-size: 16px; box-sizing: border-box; border-radius: 8px; font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;浏览器一般只允许使用GET/POST方法，虽然可以通过JS来发送PUT方法，但是还得编写代码，相对而言，使用命令行下的CURL命令则显得方便很多，在开发测试时很有用，所以学习一下还是必要的：&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;代码如下:&lt;/div&gt;&lt;div class=&quot;codebody&quot; id=&quot;code79555&quot; style=&quot;margin: 0px; padding: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); background: rgb(216, 214, 214); font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap;&quot;&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;curl&amp;nbsp;-X&amp;nbsp;PUT&amp;nbsp;http://www.domain.com/demo.php&amp;nbsp;-d&amp;nbsp;&amp;quot;id=1&amp;quot;&amp;nbsp;-d&amp;nbsp;&amp;quot;title=a&amp;quot;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: &amp;quot;PingFangSC, PingFang SC;&amp;quot;; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;这样就会通过PUT方法发送id, title数据，测试时demo.php的代码就类似上面的php://input。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 02 Jul 2026 14:41:46 +0800</pubDate></item><item><title>一文详解五种常见请求 GET（查询）、POST（创建）、PUT（更新）、DELETE（删除）、PATCH(部分更新)的区别</title><link>https://blog.hbhtyw.com/?id=24</link><description>&lt;p&gt;GET、POST、PUT、DELETE、PATCH 五种 HTTP 请求方法在web 开发中经常碰到，下面我们将从涵盖语义、幂等性、安全性、参数位置、典型场景及代码示例等方向对它进行对比分析&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-0&quot;&gt;&lt;strong&gt;1. GET（查询）&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;用途&lt;/strong&gt;&lt;br/&gt; • 获取资源（只读操作）。&lt;/p&gt;&lt;p&gt;• 示例：查询用户列表、获取商品详情。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;特点&lt;/strong&gt;&lt;br/&gt; • 安全且幂等：不修改服务器数据，多次调用结果一致。&lt;/p&gt;&lt;p&gt;• 参数位置：通过 URL 的查询字符串（Query String）传递参数。&lt;/p&gt;&lt;p&gt;• 缓存友好：支持浏览器缓存和代理服务器缓存。&lt;/p&gt;&lt;p&gt;• 数据限制：URL 长度有限（通常约 2KB），不适合传输敏感或大量数据。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;场景&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;GET&amp;nbsp;/users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;获取所有用户列表
GET&amp;nbsp;/users/123&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;获取&amp;nbsp;ID&amp;nbsp;为&amp;nbsp;123&amp;nbsp;的用户信息&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-1&quot;&gt;&lt;strong&gt;2. POST（创建）&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;用途&lt;/strong&gt;&lt;br/&gt; • 提交数据（通常用于创建资源或触发副作用操作）。&lt;/p&gt;&lt;p&gt;• 示例：用户注册、提交订单、发送邮件。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;特点&lt;/strong&gt;&lt;br/&gt; • 不安全且不幂等：可能修改服务器数据，多次调用可能产生不同结果（如重复提交）。&lt;/p&gt;&lt;p&gt;• 参数位置：数据通过请求体（Request Body）传输，支持复杂结构（如 JSON、XML）。&lt;/p&gt;&lt;p&gt;• 无数据限制：适合传输大量或敏感数据。&lt;/p&gt;&lt;p&gt;• 响应：通常返回新资源的 URI 或状态码（如 &lt;code&gt;201 Created&lt;/code&gt;）。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;场景&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;POST&amp;nbsp;/users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;创建新用户&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;name&amp;quot;:&amp;nbsp;&amp;quot;John&amp;quot;,&amp;nbsp;&amp;quot;age&amp;quot;:&amp;nbsp;20&amp;nbsp;}&amp;nbsp;
Response:&amp;nbsp;201&amp;nbsp;Created,&amp;nbsp;Location:&amp;nbsp;/users/123&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-2&quot;&gt;&lt;strong&gt;3. PUT（全量更新）&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;用途&lt;/strong&gt;&lt;br/&gt; • 全量更新资源（替换整个资源）。&lt;/p&gt;&lt;p&gt;• 示例：更新用户的全部信息（需提供完整字段）。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;特点&lt;/strong&gt;&lt;br/&gt; • 幂等：多次调用效果与一次相同（若数据相同）。&lt;/p&gt;&lt;p&gt;• 参数位置：数据通过请求体传输，必须包含完整资源信息。&lt;/p&gt;&lt;p&gt;• URI 明确：请求的 URI 必须指向具体资源（如 &lt;code&gt;/users/123&lt;/code&gt;）。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;场景&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;PUT&amp;nbsp;/users/123&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;替换&amp;nbsp;ID&amp;nbsp;为&amp;nbsp;123&amp;nbsp;的用户全部信息&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;name&amp;quot;:&amp;nbsp;&amp;quot;John&amp;quot;,&amp;nbsp;&amp;quot;age&amp;quot;:&amp;nbsp;25&amp;nbsp;}&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-3&quot;&gt;&lt;strong&gt;4. DELETE（删除）&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;用途&lt;/strong&gt;&lt;br/&gt; • 删除资源。&lt;/p&gt;&lt;p&gt;• 示例：删除用户账户、取消订单。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;特点&lt;/strong&gt;&lt;br/&gt; • 幂等：多次调用效果与一次相同（删除后资源已不存在）。&lt;/p&gt;&lt;p&gt;• 无请求体：通常不需要请求体，仅需指定资源 URI。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;场景&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;DELETE&amp;nbsp;/users/123&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;删除&amp;nbsp;ID&amp;nbsp;为&amp;nbsp;123&amp;nbsp;的用户&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-4&quot;&gt;&lt;strong&gt;5. PATCH（部分更新）&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;用途&lt;/strong&gt;&lt;br/&gt; • 部分更新资源（仅修改资源的部分字段）。&lt;/p&gt;&lt;p&gt;• 示例：更新用户的邮箱或地址（无需提交完整信息）。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;特点&lt;/strong&gt;&lt;br/&gt; • 不幂等：多次调用可能产生不同结果（如多次部分更新）。&lt;/p&gt;&lt;p&gt;• 参数位置：数据通过请求体传输，仅包含需更新的字段。&lt;/p&gt;&lt;p&gt;• 灵活性：适合增量更新，减少数据传输量。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;场景&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;PATCH&amp;nbsp;/users/123&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;更新&amp;nbsp;ID&amp;nbsp;为&amp;nbsp;123&amp;nbsp;的用户邮箱&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;email&amp;quot;:&amp;nbsp;&amp;quot;new@example.com&amp;quot;&amp;nbsp;}&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2 data-id=&quot;heading-5&quot;&gt;&lt;strong&gt;关键区别总结&lt;/strong&gt;&lt;/h2&gt;&lt;table width=&quot;1453&quot;&gt;&lt;thead&gt;&lt;tr class=&quot;firstRow&quot;&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;176&quot;&gt;方法&lt;/th&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;280&quot;&gt;语义&lt;/th&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;159&quot;&gt;幂等性&lt;/th&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;159&quot;&gt;安全性&lt;/th&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;307&quot;&gt;参数位置&lt;/th&gt;&lt;th style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(216, 216, 216);&quot; width=&quot;371&quot;&gt;典型场景&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;176&quot; class=&quot;selectTdClass&quot;&gt;GET&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;280&quot; class=&quot;selectTdClass&quot;&gt;查询&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;307&quot; class=&quot;selectTdClass&quot;&gt;URL 查询字符串&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;371&quot; class=&quot;selectTdClass&quot;&gt;获取数据&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;176&quot; class=&quot;selectTdClass&quot;&gt;POST&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;280&quot; class=&quot;selectTdClass&quot;&gt;创建/触发操作&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;307&quot; class=&quot;selectTdClass&quot;&gt;请求体&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;371&quot; class=&quot;selectTdClass&quot;&gt;创建资源、提交表单&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;176&quot; class=&quot;selectTdClass&quot;&gt;PUT&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;280&quot; class=&quot;selectTdClass&quot;&gt;全量更新&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;307&quot; class=&quot;selectTdClass&quot;&gt;请求体&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;371&quot; class=&quot;selectTdClass&quot;&gt;替换整个资源&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;176&quot; class=&quot;selectTdClass&quot;&gt;DELETE&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;280&quot; class=&quot;selectTdClass&quot;&gt;删除&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;307&quot; class=&quot;selectTdClass&quot;&gt;URL&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;371&quot; class=&quot;selectTdClass&quot;&gt;删除资源&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;176&quot; class=&quot;selectTdClass&quot;&gt;PATCH&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;280&quot; class=&quot;selectTdClass&quot;&gt;部分更新&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;159&quot; class=&quot;selectTdClass&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;307&quot; class=&quot;selectTdClass&quot;&gt;请求体&lt;/td&gt;&lt;td style=&quot;border-color: rgb(165, 165, 165); background-color: rgb(255, 255, 255); border-width: 1px; border-style: solid;&quot; width=&quot;371&quot; class=&quot;selectTdClass&quot;&gt;修改资源的局部字段&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr/&gt;&lt;p&gt;&lt;strong&gt;补充说明&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;幂等性：&lt;br/&gt; • PUT 和 DELETE 是幂等的（多次调用结果一致）。&lt;/p&gt;&lt;p&gt;• POST 和 PATCH 不幂等（多次调用可能产生不同结果）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;安全性：&lt;br/&gt; • GET 是安全的（不修改数据）。&lt;/p&gt;&lt;p&gt;• 其他方法均不安全（可能修改数据）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RESTful 设计原则：&lt;br/&gt; • PUT 要求客户端提供完整资源数据，用于替换服务器端资源。&lt;/p&gt;&lt;p&gt;• PATCH 用于增量更新，需明确指定需修改的字段（如 JSON Merge Patch 或 JSON Patch 格式）。&lt;/p&gt;&lt;p&gt;• POST 通常用于“副作用”操作（如触发邮件发送、创建子资源）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;缓存与性能：&lt;br/&gt; • GET 可被缓存，适合高频读取场景。&lt;/p&gt;&lt;p&gt;• PUT/DELETE 通常不缓存。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;hr/&gt;&lt;p&gt;&lt;strong&gt;代码示例对比&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;#&amp;nbsp;创建用户（POST）&amp;nbsp;
POST&amp;nbsp;/users&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;name&amp;quot;:&amp;nbsp;&amp;quot;John&amp;quot;,&amp;nbsp;&amp;quot;age&amp;quot;:&amp;nbsp;20&amp;nbsp;}&amp;nbsp;&amp;nbsp;

#&amp;nbsp;全量更新用户（PUT）&amp;nbsp;
PUT&amp;nbsp;/users/123&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;name&amp;quot;:&amp;nbsp;&amp;quot;John&amp;quot;,&amp;nbsp;&amp;quot;age&amp;quot;:&amp;nbsp;25,&amp;nbsp;&amp;quot;email&amp;quot;:&amp;nbsp;&amp;quot;john@example.com&amp;quot;&amp;nbsp;}&amp;nbsp;&amp;nbsp;

#&amp;nbsp;部分更新用户（PATCH）&amp;nbsp;
PATCH&amp;nbsp;/users/123&amp;nbsp;
Body:&amp;nbsp;{&amp;nbsp;&amp;quot;email&amp;quot;:&amp;nbsp;&amp;quot;new@example.com&amp;quot;&amp;nbsp;}&amp;nbsp;&amp;nbsp;

#&amp;nbsp;删除用户（DELETE）&amp;nbsp;
DELETE&amp;nbsp;/users/123&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;hr/&gt;&lt;p&gt;通过合理使用 HTTP 方法，可以使 API 设计更符合语义、易于维护，并充分利用 HTTP 协议的特性（如缓存、幂等性）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 02 Jul 2026 14:29:08 +0800</pubDate></item><item><title>线上全能服务大厅｜全宿舍线上可做、全网低价、快速出单</title><link>https://blog.hbhtyw.com/?id=23</link><description>&lt;pre class=&quot;prism-highlight prism-language-markdown&quot;&gt;#&amp;nbsp;线上全能服务大厅｜全宿舍线上可做、全网低价、快速出单

##&amp;nbsp;📢&amp;nbsp;全站线上服务&amp;nbsp;·&amp;nbsp;全程手机/电脑搞定&amp;nbsp;·&amp;nbsp;不用跑腿

我们专为全日制成教、大专、函授、在校学生打造**一站式线上便民服务**，全部线上对接、线上完成、线上交付，宿舍躺着就能下单，当天就能出结果，价格便宜、靠谱安全、售后有保障。**全场统一明码标价，无隐形消费，宿舍线上自助下单即可**。

---

##&amp;nbsp;🎓&amp;nbsp;一、学业作业刚需服务（买的人最多）

所有学生必考、必写、必交的东西，我们全部帮你搞定，不用熬夜、不用头疼。

-&amp;nbsp;✅&amp;nbsp;期末复习资料、考前重点、往年真题整理

-&amp;nbsp;✅&amp;nbsp;网课答案、学习通、智慧树、线上作业全套协助

-&amp;nbsp;✅&amp;nbsp;实训报告、实践总结、周记、心得体会全套成品

-&amp;nbsp;✅&amp;nbsp;思想汇报、月度季度材料、团日活动心得

-&amp;nbsp;✅&amp;nbsp;结课小论文、各科作业、课程短文快速完成

-&amp;nbsp;✅&amp;nbsp;论文格式排版、目录调整、参考文献规范整理

**适合：所有不想写作业、怕挂科、没时间复习的同学｜统一标价：资料合集9\.9\-19\.9元，单项辅助5\-15元**

---

##&amp;nbsp;📝&amp;nbsp;二、文案文书代写改写（懒人最爱）

不会写、写不好、没时间写，直接交给我们，全部原创通顺、符合学校要求。**统一标价：短篇文案3\-8元，全套长篇文书9\.9元起**

-&amp;nbsp;✅&amp;nbsp;请假条、助学金申请、奖学金申请、各类申请书

-&amp;nbsp;✅&amp;nbsp;检讨书、迟到检讨、旷课检讨、宿舍违规检讨

-&amp;nbsp;✅&amp;nbsp;竞选稿、发言稿、班会讲话、活动主持稿

-&amp;nbsp;✅&amp;nbsp;工作总结、活动方案、班级材料、各类公文

-&amp;nbsp;✅&amp;nbsp;朋友圈文案、短句、励志文案、签名文案全套

---

##&amp;nbsp;📊&amp;nbsp;三、办公排版&amp;nbsp;\&amp;amp;amp;&amp;nbsp;PPT&amp;nbsp;代做服务（高频刚需）

班级、社团、上课、答辩全要用，我们快速做好，好看又规范。**统一标价：简单排版5元，成品PPT单套15\-25元，简历美化9\.9元**

-&amp;nbsp;✅&amp;nbsp;答辩PPT、班会PPT、社团招新PPT、汇报PPT

-&amp;nbsp;✅&amp;nbsp;Word全文排版、字体统一、行距调整、格式美化

-&amp;nbsp;✅&amp;nbsp;Excel表格制作、考勤表、统计表、台账整理

-&amp;nbsp;✅&amp;nbsp;PDF合并、拆分、压缩、转Word、转图片

-&amp;nbsp;✅&amp;nbsp;简历优化排版、求职简历美化修改

---

##&amp;nbsp;🎨&amp;nbsp;四、图片美化&amp;nbsp;\&amp;amp;amp;&amp;nbsp;简单设计服务

社团、班级、日常全部用得上，价格便宜，几分钟出图。**统一标价：证件照全套3\.9元，简单修图2\-5元，班级小海报10元起**

-&amp;nbsp;✅&amp;nbsp;证件照换底色、裁剪、排版、正装效果

-&amp;nbsp;✅&amp;nbsp;图片抠图、去背景、简单修图

-&amp;nbsp;✅&amp;nbsp;海报简单制作、活动封面、班级配图

-&amp;nbsp;✅&amp;nbsp;头像美化、边框设计、壁纸定制

---

##&amp;nbsp;🎬&amp;nbsp;五、短视频线上轻服务

全部线上操作，速度快，价格低。**统一标价：单条简易剪辑5\-8元，素材打包合集9\.9元**

-&amp;nbsp;✅&amp;nbsp;视频去水印、剪辑拼接、加字幕、简单调色

-&amp;nbsp;✅&amp;nbsp;短视频文案、脚本、短句批量制作

-&amp;nbsp;✅&amp;nbsp;热门背景音乐、素材打包整理

---

##&amp;nbsp;💻&amp;nbsp;六、电脑工具&amp;nbsp;\&amp;amp;amp;&amp;nbsp;资源付费专区

一次购买，永久使用，无限下载。**统一标价：单套资源4\.9元，全站资源年费会员39\.9元不限下载**

-&amp;nbsp;✅&amp;nbsp;全套办公软件、设计软件安装包\+教程

-&amp;nbsp;✅&amp;nbsp;各类实用电脑小工具、解压、清理、转换工具

-&amp;nbsp;✅&amp;nbsp;全网素材库：PPT素材、字体、免抠图、文案库

-&amp;nbsp;✅&amp;nbsp;AI提示词全套、副业赚钱文案素材

---

##&amp;nbsp;🎁&amp;nbsp;七、会员娱乐便民服务（复购超高）

-&amp;nbsp;✅&amp;nbsp;视频会员、音乐会员、网盘会员低价拼单

-&amp;nbsp;✅&amp;nbsp;游戏周边资源、上分咨询、账号基础托管

-&amp;nbsp;✅&amp;nbsp;高清壁纸、头像、表情包全套资源包

-&amp;nbsp;**统一标价：各类会员周卡2\.9元起，娱乐资源合集5\.9元打包**

---

---

##&amp;nbsp;✅&amp;nbsp;为什么选择我们线上服务？

##&amp;nbsp;💡&amp;nbsp;下单必看｜贴心常见问题（全部实话实说）

##&amp;nbsp;❓&amp;nbsp;常见问题解答（下单必看）

-&amp;nbsp;🔹&amp;nbsp;全程线上，不用见面，宿舍直接下单

###&amp;nbsp;1\.&amp;nbsp;担心要线下跑腿、见面对接？

全程纯线上宿舍搞定，不用见面、不用跑腿、不用私下乱跑，手机电脑直接传文件对接，隐私安全不麻烦，住校也能放心下单。

###&amp;nbsp;1\.&amp;nbsp;所有服务是不是全部线上完成？要不要线下见面？

-&amp;nbsp;🔹&amp;nbsp;价格透明，没有隐形收费

全部纯线上操作，宿舍手机、电脑就能搞定，不用线下碰面、不用跑腿，全程隐私保护，安全靠谱。

-&amp;nbsp;🔹&amp;nbsp;全部真人学生团队加急处理

###&amp;nbsp;2\.&amp;nbsp;怕付款后没人理、跑路、拖延不交稿？

###&amp;nbsp;2\.&amp;nbsp;付款之后多久能交付？速度快不快？

-&amp;nbsp;🔹&amp;nbsp;支持加急，当天出稿、当天交付

正规学生团队长期在线值守，资源类付款秒自动发货，人工服务全程跟单。不失联、不拖延、不敷衍，旺季也能按时交单，绝不耽误交作业时间。

资源类付款秒自动发货；文案、排版、简单设计类常规当天出单；加急订单优先插队，几小时内完成，不耽误交作业时间。

-&amp;nbsp;🔹&amp;nbsp;售后免费微调，做到满意为止

###&amp;nbsp;3\.&amp;nbsp;怕写得太敷衍、格式不对、老师不给过？

###&amp;nbsp;3\.&amp;nbsp;资料和文案能不能直接上交？会不会不合格？

---

全部按本校成教标准格式、校园规范话术制作，贴合任课老师审核要求，内容贴合学生身份，简单改姓名班级就能直接上交，通过率拉满，不用返工重改。

所有虚拟资源、模板都是永久保存，下载之后终身使用，不限次数，后续更新免费补发给你。

###&amp;nbsp;5\.&amp;nbsp;买完资源之后可以重复使用吗？

全程傻瓜式自助下单，也可以直接联系人工客服，发需求就行，我们全程帮你对接，不用你自己折腾。

###&amp;nbsp;4\.&amp;nbsp;不会操作、不会下单怎么办？

全部按照学校通用格式、学生标准话术制作，拿来简单改下姓名、班级、日期就能直接提交，贴合校内要求，通过率高。

##&amp;nbsp;📲&amp;nbsp;立即下单方式

###&amp;nbsp;6\.&amp;nbsp;做得不满意，能不能免费修改？

所有模板、资料、素材全部永久保存、终身免费复用，不限下载次数，后期平台更新新资源，老客户直接免费补发，一次付费用到毕业。

###&amp;nbsp;5\.&amp;nbsp;资源买一次能用多久，能不能反复用？

全站明码标价，页面多少钱就收多少钱，没有捆绑消费、没有临时加价、没有隐藏套路，全部都是学生平价，刚需小额消费，无压力下单。

###&amp;nbsp;4\.&amp;nbsp;手头预算少，怕乱加价、有隐形套路？

###&amp;nbsp;6\.&amp;nbsp;不满意可以修改吗？有没有售后？

直接联系客服&amp;nbsp;→&amp;nbsp;说清楚需求&amp;nbsp;→&amp;nbsp;线上付款&amp;nbsp;→&amp;nbsp;线上交付&amp;nbsp;→&amp;nbsp;全程不用出门
网站自助下单，24小时自动处理，随时可拍。

基础微调、格式优化、简单文案修改全部免费售后，专人对接跟进，改到符合你的使用要求为止，售后不甩锅，服务到底。

---

##&amp;nbsp;✅&amp;nbsp;为什么选择我们线上服务？

页面全部明码标价，多少钱就是多少钱，无套路、不临时加价、不捆绑消费，学生平价消费，透明划算。

###&amp;nbsp;7\.&amp;nbsp;价格会不会乱加价？有没有隐形收费？

正常范围内免费微调修改，有专属售后对接，不会下单之后就没人管，服务全程跟进到满意为止。

###&amp;nbsp;7\.&amp;nbsp;新手不会下单、不会操作怎么办？

---

##&amp;nbsp;✅&amp;nbsp;为什么选择我们线上服务？

不用懂复杂操作，不会就找客服，全程手把手协助下单、按需对接需求，懒人专属服务，躺着就能把事办好。&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 30 Apr 2026 08:05:00 +0800</pubDate></item><item><title>Windows 10瘦身</title><link>https://blog.hbhtyw.com/?id=22</link><description>&lt;p&gt;Windows操作系统功能越来越强大，同时体型也越来越臃肿。&lt;br/&gt;安装盘没有60Gb都不敢安装。Windows10 安装最低磁盘要求20G&lt;/p&gt;&lt;p&gt;====瘦身基础篇，适合任何用户：（可见目录，简单迁移）&lt;br/&gt;1. 安装任何新软件，都选择安装到其他盘符；&lt;br/&gt;2. 很多软件需要磁盘空间的默认路径都设置到其他盘符，比如下载软件的默认下载目录；&lt;br/&gt;3. 修改用户目录下的，文档，音乐，图片，桌面，下载目录到其他盘符。&lt;br/&gt;例如修改【文档】，右键点击弹出菜单选择属性，&lt;br/&gt;属性面板\位置页签\ 下面修改到新的位置，确定，弹出界面提示是否移动，选择是，移动所有文件。&lt;br/&gt;其他目录类似，逐个修改即可。&lt;/p&gt;&lt;p&gt;============&lt;/p&gt;&lt;p&gt;Win10用户: 设置 - 系统 - 存储&lt;br/&gt;Settings-&amp;gt;Storage&amp;nbsp;在右侧窗口中点击“更多存储设置”下的“更改新内容的保存位置”&lt;/p&gt;&lt;p&gt;只能修改这几项：应用,&amp;nbsp;文档,&amp;nbsp;音乐,&amp;nbsp;照片视频,&amp;nbsp;电影电视,&amp;nbsp;离线地图&lt;/p&gt;&lt;p&gt;==============&lt;/p&gt;&lt;p&gt;====瘦身高级篇，User目录下除了上面能够方便修改的常用目录外，还有很多的隐藏目录，&lt;br/&gt;实际上很多软件会将很多用户数据放在这些隐藏目录里，时间长了，越积越多，C盘就不够用了。&lt;br/&gt;修改User目录的做法简单的说就3个步骤，&lt;/p&gt;&lt;p&gt;1.重启进入修复模式命令行，&lt;/p&gt;&lt;p&gt;2.复制User用户目录到其他盘，&lt;/p&gt;&lt;p&gt;3.然后在系统盘原始位置建立个不占空间的目录连接。&lt;/p&gt;&lt;p&gt;会用到2个命令（复制命令:robocopy）(创建连接命令: mklink )&lt;/p&gt;&lt;p&gt;这2个命令都是Windows下比较新的功能。以前的xp系统下是没有的。&lt;br/&gt;robocopy 能确保数据及其相关信息完整拷贝，比xcopy更新更强，具体可以google。&lt;/p&gt;&lt;p&gt;具体步骤：&lt;br/&gt;补充小白模式：&lt;br/&gt;（Window界面的盘符和纯命令行登陆的盘符可能不同）&lt;br/&gt;比如要将C:\Users\目录，迁移到D:\users下&lt;br/&gt;提前在C盘根目录下新建一个文本文件ccc.txt; D盘根目录下新建ddd.txt文件。方便在命令行下识别。&lt;/p&gt;&lt;p&gt;1. 重启进入修复模式命令行，&lt;br/&gt;进入 系统设置 -&amp;gt; 升级&amp;amp;安全 -&amp;gt; 恢复 -&amp;gt; 高级重启 -&amp;gt; 立刻重启&lt;br/&gt;Update &amp;amp; Security &amp;gt; Recoery &amp;gt; Advanced startup &amp;gt; Restart now&lt;br/&gt;依次选择：&lt;br/&gt;Troubleshoot &amp;gt; Advanced options &amp;gt; Command Prompt&lt;br/&gt;user... password... &amp;gt; Command...&lt;/p&gt;&lt;p&gt;命令行里可以使用查看命令详细信息：&lt;br/&gt;&amp;gt;robocopy /? 回车...&lt;br/&gt;&amp;gt;mklink /? 回车...&lt;/p&gt;&lt;p&gt;2. 复制User用户目录到其他盘&lt;br/&gt;C:\&amp;gt;dir 列举文件及文件夹&lt;br/&gt;C:\&amp;gt;D: 切换到D盘&lt;br/&gt;D:\&amp;gt;dir ...&lt;br/&gt;D:\&amp;gt;E:: ...&lt;br/&gt;找到你要复制的原始及目标盘符。&lt;br/&gt;D:&amp;gt;robocopy &amp;quot;D:\Users&amp;quot; &amp;quot;E:\Users&amp;quot; /E /COPYALL /XJ&amp;nbsp;&lt;/p&gt;&lt;p&gt;参数说明：此命令为Windows的“强健文件拷贝”命令。&lt;br/&gt;/E&amp;nbsp;表示拷贝文件时包含子目录（包括空目录）&lt;br/&gt;/COPYALL&amp;nbsp;表示拷贝所有文件信息&lt;br/&gt;/XJ&amp;nbsp;表示不包括Junction&lt;br/&gt;points（默认是包括的）&lt;br/&gt;/XD “C:\Users\Administrator” 表示不包括指定的目录，此处指定目录为：“C:\Users\Administrator”&lt;/p&gt;&lt;p&gt;这个过程要看文件的大小，最好提前清理过磁盘在做此操作。&lt;br/&gt;复制完成后，将原始Users目录改名，&lt;br/&gt;D:&amp;gt;move Users Users_bak&amp;nbsp;&lt;/p&gt;&lt;p&gt;3. 然后在系统盘原始位置建立个不占空间的目录连接。&lt;/p&gt;&lt;p&gt;如果Windows系统的盘符和命令行的盘符刚好相差了一位，是因为Windows7开始多了系统的保留分区，Windows下看不到，因为没有盘符。就要用这条看起来比较奇怪的命令：&lt;br/&gt;D:&amp;gt;mklink /J &amp;quot;D:\Users&amp;quot; &amp;quot;D:\Users&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;如果Windows系统盘符和操作命令行界面的盘符一致，使用下面的命令即可。&lt;br/&gt;C:&amp;gt;mklink /J C:\Users D:\Users&amp;nbsp;&lt;/p&gt;&lt;p&gt;参数说明：&lt;br/&gt;/D 创建目录符号链接。默认为文件符号链接。&lt;br/&gt;/H 创建硬链接，而不是符号链接。&lt;br/&gt;/J 创建目录联接。（我们使用这个）&lt;br/&gt;Link 指定新的符号链接名称。&lt;br/&gt;Target 指定新链接引用的路径 (相对或绝对)。&lt;/p&gt;&lt;p&gt;至此完成，重启看看，没有问题就可以把系统盘下刚才改名的Users_bak文件夹删除了。&lt;/p&gt;&lt;p&gt;参见：http://www.linuxfly.org/post/695/&lt;br/&gt;这里使用Win7，且描述的较为详细，以及包含可能出现的问题。&lt;/p&gt;&lt;p&gt;==================================================================&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;====还有通过修改注册表的方式，甚至能修改默认安装程序的路径，具体参见如下，自行斟酌，慎用。&lt;/p&gt;&lt;p&gt;https://www.cnblogs.com/shangdawei/p/4381231.html&lt;br/&gt;https://www.windows10.pro/non-system-disk-win10-user-files-to/&lt;br/&gt;https://hovertree.com/h/bjaf/u070lgxp.htm&lt;br/&gt;windows 7、Windows10 系统目录迁移,修改安装的默认路径:Users,Program Files,ProgramData&lt;/p&gt;&lt;p&gt;注册表中修改“ProgramFilesDir”项的键值&lt;br/&gt;32位：“HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\ CurrentVersion”&lt;br/&gt;64位：“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion”；&lt;/p&gt;&lt;p&gt;复制Program Files 文件夹到其他盘&lt;br/&gt;xcopy &amp;quot;C:\Program Files&amp;quot; &amp;quot;D:\Program Files\&amp;quot; /E /H /K /X /Y&lt;/p&gt;&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]&lt;br/&gt;&amp;quot;ProgramFilesDir&amp;quot;=&amp;quot;D:\Program Files&amp;quot;&lt;br/&gt;&amp;quot;CommonFilesDir&amp;quot;=&amp;quot;D:\Program Files\Common Files&amp;quot;&lt;/p&gt;&lt;p&gt;“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion”；&lt;br/&gt;&amp;quot;ProgramFilesDir&amp;quot;=&amp;quot;D:\Program Files(x86)&amp;quot;&lt;br/&gt;&amp;quot;ProgramFilesDir(x86)&amp;quot;=&amp;quot;D:\Program Files(x86)&amp;quot;&lt;br/&gt;&amp;quot;CommonFilesDir&amp;quot;=&amp;quot;D:\Program Files(x86)\Common Files&amp;quot;&lt;br/&gt;&amp;quot;CommonFilesDir(x86)&amp;quot;=&amp;quot;D:\Program Files(86)\Common Files&amp;quot;&lt;/p&gt;&lt;p&gt;mklink /J &amp;quot;C:\Program Files&amp;quot; &amp;quot;D:\Program Files&amp;quot;&lt;/p&gt;&lt;p&gt;================&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;补充信息：符号链接创建后的图标和快捷方式的图标很像。&lt;/p&gt;&lt;p&gt;不过符号链接不占用系统空间，在文件系统中不是一个单独的文件，&lt;br/&gt;而快捷方式在系统中是一个单独的文件，占用系统空间，虽然很小。&lt;/p&gt;&lt;p&gt;两者相同的地方就是，如果源文件被删除了，两者就都没有用了；&lt;br/&gt;移除链接和快捷方式都不会影响源文件。&lt;/p&gt;&lt;p&gt;硬链接在系统占用的空间和源文件相同，图标和快捷方式的突变不同，移除源文件或硬链接均不会对另一方产生影响，&lt;br/&gt;而硬链接文件的任何更改都会影响到源文件，而如果源文件被删除的话，它的内容依然通过硬链接的形式存在着。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 17 Apr 2026 16:14:41 +0800</pubDate></item><item><title>debian 12 相关设置</title><link>https://blog.hbhtyw.com/?id=21</link><description>&lt;p&gt;ip add &amp;nbsp; &amp;nbsp;查到网卡名称 如eth0&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;1. eth0是上步中查询到的网卡名称&amp;nbsp;&lt;/p&gt;&lt;p&gt;2. address 192.168.2.157 是ip地址&amp;nbsp;&lt;/p&gt;&lt;p&gt;3. netmask 255.255.255.0 是ip地址的子网掩码&amp;nbsp;&lt;/p&gt;&lt;p&gt;4. gateway 192.168.2.2 是ip地址的网关&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;vim /etc/network/interfaces&lt;br/&gt;&lt;br/&gt;修改为：&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;auto eth0&lt;/p&gt;&lt;p&gt;iface eth0 inet static &lt;br/&gt;address 192.168.2.157 &lt;br/&gt;netmask 255.255.255.0 &lt;br/&gt;gateway 192.168.2.2&lt;br/&gt;&lt;br/&gt;修改dns&lt;br/&gt;/etc/resolv.conf&lt;/p&gt;&lt;p&gt;&lt;br/&gt;nameserver&amp;nbsp;114.114.114.114&amp;nbsp;&amp;nbsp; #设置首选dns&lt;/p&gt;&lt;p&gt;nameserver&amp;nbsp;8.8.8.8&amp;nbsp;&amp;nbsp; #设置备用&lt;/p&gt;&lt;p&gt;&lt;br/&gt;APT换源：&lt;br/&gt;deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;安装ssh&lt;/p&gt;&lt;p&gt;apt update&lt;/p&gt;&lt;p&gt;apt install ssh&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;修改允许root登录SSH&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;vim /etc/ssh/sshd_config&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;将&amp;nbsp;PermitRootLogin&amp;nbsp;的值改为&amp;nbsp;yes（如果行首有&amp;nbsp;#&amp;nbsp;注释符，需删除注释，如果没有侧添加）：&lt;/p&gt;&lt;p&gt;PermitRootLogin yes&lt;br/&gt;&lt;/p&gt;&lt;p&gt;确保允许密码认证（如果禁用密码需同时修改）：&lt;/p&gt;&lt;p&gt;PasswordAuthentication yes&lt;br/&gt;&lt;/p&gt;&lt;p&gt;systemctl restart ssh&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 27 Mar 2026 14:05:54 +0800</pubDate></item></channel></rss>