<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[草色遥看近却无]]></title><description><![CDATA[草色遥看近却无]]></description><link>https://www.asany.cn/</link><image><url>https://www.asany.cn/favicon.png</url><title>草色遥看近却无</title><link>https://www.asany.cn/</link></image><generator>Ghost 5.71</generator><lastBuildDate>Sun, 17 May 2026 04:17:39 GMT</lastBuildDate><atom:link href="https://www.asany.cn/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[安装 Speedtest 工具]]></title><description><![CDATA[<p></p><p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x8FD0;&#x884C; <code>speedtest</code> &#x547D;&#x4EE4;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x6D4B;&#x8BD5;&#x8BA1;&#x7B97;&#x673A;&#x4E0E;&#x4E92;&#x8054;&#x7F51;&#x4E4B;&#x95F4;&#x7684;&#x7F51;&#x7EDC;&#x901F;&#x5EA6;&#x3002;&#x6709;&#x591A;&#x79CD;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x6267;&#x884C;&#x8FD9;&#x4E2A;&#x64CD;&#x4F5C;&#xFF0C;</p>]]></description><link>https://www.asany.cn/an-zhuang-speedtest-gong-ju/</link><guid isPermaLink="false">65518021d6671800011e0394</guid><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Mon, 13 Nov 2023 02:04:20 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1561474119-1b76f3a79816?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDN8fHNwZWVkdGVzdHxlbnwwfHx8fDE2OTk4NDAyNzF8MA&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1561474119-1b76f3a79816?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDN8fHNwZWVkdGVzdHxlbnwwfHx8fDE2OTk4NDAyNzF8MA&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" alt="&#x5B89;&#x88C5; Speedtest &#x5DE5;&#x5177;"><p></p><p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x8FD0;&#x884C; <code>speedtest</code> &#x547D;&#x4EE4;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x6D4B;&#x8BD5;&#x8BA1;&#x7B97;&#x673A;&#x4E0E;&#x4E92;&#x8054;&#x7F51;&#x4E4B;&#x95F4;&#x7684;&#x7F51;&#x7EDC;&#x901F;&#x5EA6;&#x3002;&#x6709;&#x591A;&#x79CD;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x6267;&#x884C;&#x8FD9;&#x4E2A;&#x64CD;&#x4F5C;&#xFF0C;&#x4F46;&#x6700;&#x5E38;&#x89C1;&#x7684;&#x65B9;&#x6CD5;&#x662F;&#x4F7F;&#x7528;&#x540D;&#x4E3A; Speedtest &#x7684;&#x5DE5;&#x5177;&#x3002;&#x4EE5;&#x4E0B;&#x662F;&#x4E00;&#x822C;&#x6B65;&#x9AA4;&#xFF1A;</p><h3 id="%E5%AE%89%E8%A3%85-speedtest-%E5%B7%A5%E5%85%B7%EF%BC%9A-%E4%BD%A0%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E6%9D%A5%E5%AE%89%E8%A3%85-speedtest-%E5%B7%A5%E5%85%B7%EF%BC%8C%E5%85%B7%E4%BD%93%E5%8F%96%E5%86%B3%E4%BA%8E%E4%BD%A0%E4%BD%BF%E7%94%A8%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%EF%BC%9A"><strong>&#x5B89;&#x88C5; Speedtest &#x5DE5;&#x5177;&#xFF1A;</strong> &#x4F60;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x6765;&#x5B89;&#x88C5; Speedtest &#x5DE5;&#x5177;&#xFF0C;&#x5177;&#x4F53;&#x53D6;&#x51B3;&#x4E8E;&#x4F60;&#x4F7F;&#x7528;&#x7684;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#xFF1A;</h3><ul><li>&#x5728; Ubuntu &#x6216;&#x5176;&#x4ED6;&#x57FA;&#x4E8E; Debian &#x7684;&#x7CFB;&#x7EDF;&#x4E0A;&#xFF1A;</li></ul><pre><code>curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
</code></pre><ul><li>&#x5728; macOS &#x4E0A;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; Homebrew&#xFF1A;</li></ul><pre><code>brew tap teamookla/speedtest
brew update
# Example how to remove conflicting or old versions using brew
# brew uninstall speedtest --force
# brew uninstall speedtest-cli --force
brew install speedtest --force</code></pre><ul><li>&#x5728; Windows &#x4E0A;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728; PowerShell &#x6216;&#x547D;&#x4EE4;&#x63D0;&#x793A;&#x7B26;&#x4E2D;&#x4F7F;&#x7528;&#xFF1A;</li></ul><pre><code>pip install speedtest-cli
</code></pre><h3 id="%E8%BF%90%E8%A1%8C-speedtest%EF%BC%9A-%E5%AE%89%E8%A3%85%E5%AE%8C-speedtest-%E5%B7%A5%E5%85%B7%E5%90%8E%EF%BC%8C%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E8%BF%90%E8%A1%8C-speedtest-%E5%91%BD%E4%BB%A4%EF%BC%9A"><strong>&#x8FD0;&#x884C; Speedtest&#xFF1A;</strong> &#x5B89;&#x88C5;&#x5B8C; Speedtest &#x5DE5;&#x5177;&#x540E;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x8FD0;&#x884C; <code>speedtest</code> &#x547D;&#x4EE4;&#xFF1A;</h3><pre><code>&#x276F; speedtest

   Speedtest by Ookla

      Server: China Telecom JiangSu 5G - Nanjing (id: 26352)
         ISP: Tencent cloud computing
Idle Latency:     9.57 ms   (jitter: 0.10ms, low: 9.51ms, high: 9.82ms)
    Download:   105.54 Mbps (data used: 200.9 MB)
                  9.27 ms   (jitter: 0.36ms, low: 9.07ms, high: 20.55ms)
      Upload:     6.03 Mbps (data used: 9.4 MB)
 Packet Loss:     0.0%</code></pre><p>&#x8FD9;&#x5C06;&#x4F1A;&#x8FDE;&#x63A5;&#x5230;&#x6700;&#x8FD1;&#x7684; Speedtest &#x670D;&#x52A1;&#x5668;&#xFF0C;&#x6D4B;&#x91CF;&#x4F60;&#x7684;&#x4E0B;&#x8F7D;&#x548C;&#x4E0A;&#x4F20;&#x901F;&#x5EA6;&#xFF0C;&#x7136;&#x540E;&#x663E;&#x793A;&#x7ED3;&#x679C;&#x3002;</p><p>&#x6CE8;&#x610F;&#xFF1A;&#x786E;&#x4FDD;&#x4F60;&#x7684;&#x8BA1;&#x7B97;&#x673A;&#x80FD;&#x591F;&#x8BBF;&#x95EE;&#x4E92;&#x8054;&#x7F51;&#xFF0C;&#x5426;&#x5219; Speedtest &#x5C06;&#x65E0;&#x6CD5;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x3002;&#x6B64;&#x5916;&#xFF0C;&#x6709;&#x4E9B;&#x7F51;&#x7EDC;&#x73AF;&#x5883;&#x53EF;&#x80FD;&#x4F1A;&#x5BF9;&#x901F;&#x5EA6;&#x6D4B;&#x8BD5;&#x4EA7;&#x751F;&#x5F71;&#x54CD;&#xFF0C;&#x56E0;&#x6B64;&#x7ED3;&#x679C;&#x53EF;&#x80FD;&#x4F1A;&#x6709;&#x6240;&#x4E0D;&#x540C;&#x3002;</p>]]></content:encoded></item><item><title><![CDATA[解决 Ubuntu 安装 Google 浏览器后无法启动]]></title><description><![CDATA[<p></p><p>Ubuntu &#x684C;&#x9762;&#x7248;&#x5B89;&#x88C5; Google &#x6D41;&#x91CF;&#x65E0;&#x6CD5;&#x542F;&#x52A8;&#x89E3;&#x51B3;&#x65B9;&#x6848;</p><pre><code class="language-bash">whereis google-chrome </code></pre><p>&#x4FEE;&#x6539; <strong>vim /usr/bin/X11/google-chrome</strong> &#x6587;&#x4EF6;</p><pre><code class="language-bash"># &#x5C06; exec -a &quot;$O&quot; &quot;$HERE/chrome&quot; &quot;$@&quot; &#x4FEE;&#x6539;&#x4E3A;

exec -a &quot;$O&quot; &quot;$HERE/</code></pre>]]></description><link>https://www.asany.cn/jie-jue-ubuntu-an-zhuang-google-liu-lan-qi-hou-wu-fa-qi-dong/</link><guid isPermaLink="false">6550df56d6671800011e0378</guid><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Sun, 12 Nov 2023 14:24:58 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1649006865574-8d077cefec17?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE4fHxHb29nbGUlMjBDaHJvbWV8ZW58MHx8fHwxNjk5Nzk5MTE2fDA&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1649006865574-8d077cefec17?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE4fHxHb29nbGUlMjBDaHJvbWV8ZW58MHx8fHwxNjk5Nzk5MTE2fDA&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" alt="&#x89E3;&#x51B3; Ubuntu &#x5B89;&#x88C5; Google &#x6D4F;&#x89C8;&#x5668;&#x540E;&#x65E0;&#x6CD5;&#x542F;&#x52A8;"><p></p><p>Ubuntu &#x684C;&#x9762;&#x7248;&#x5B89;&#x88C5; Google &#x6D41;&#x91CF;&#x65E0;&#x6CD5;&#x542F;&#x52A8;&#x89E3;&#x51B3;&#x65B9;&#x6848;</p><pre><code class="language-bash">whereis google-chrome </code></pre><p>&#x4FEE;&#x6539; <strong>vim /usr/bin/X11/google-chrome</strong> &#x6587;&#x4EF6;</p><pre><code class="language-bash"># &#x5C06; exec -a &quot;$O&quot; &quot;$HERE/chrome&quot; &quot;$@&quot; &#x4FEE;&#x6539;&#x4E3A;

exec -a &quot;$O&quot; &quot;$HERE/chrome&quot; &quot;$@&quot; --user-data-dir --no-sandbox</code></pre><p>&#x73B0;&#x5728;&#x5E94;&#x8BE5;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E86;</p>]]></content:encoded></item><item><title><![CDATA[NAT类型,以及检测方法]]></title><description><![CDATA[<h3 id="linux-%E6%A3%80%E6%9F%A5-nat">Linux &#xA0;&#x68C0;&#x67E5; NAT</h3><pre><code class="language-bash">pip3 install pystun3
pystun3</code></pre><pre><code class="language-bash">Lenovo-V14-G2-ALC# pystun3
NAT Type: Symmetric NAT
External IP: 107.182.20.191
External Port: 9702
Press any key to continue</code></pre>]]></description><link>https://www.asany.cn/natlei-xing-yi-ji-jian-ce-fang-fa/</link><guid isPermaLink="false">6550d718d6671800011e036c</guid><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Sun, 12 Nov 2023 13:53:24 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1545987796-200677ee1011?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDN8fE5ldHdvcmslMjBBZGRyZXNzJTIwVHJhbnNsYXRpb258ZW58MHx8fHwxNjk5Nzk5MzM5fDA&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<h3 id="linux-%E6%A3%80%E6%9F%A5-nat">Linux &#xA0;&#x68C0;&#x67E5; NAT</h3><pre><code class="language-bash">pip3 install pystun3
pystun3</code></pre><pre><code class="language-bash">Lenovo-V14-G2-ALC# pystun3
NAT Type: Symmetric NAT
External IP: 107.182.20.191
External Port: 9702
Press any key to continue</code></pre>]]></content:encoded></item><item><title><![CDATA[使用 ZeroTier 组网]]></title><description><![CDATA[<p></p><h3 id="%E4%BD%BF%E7%94%A8%E5%88%B0%E7%9A%84%E8%AE%BE%E5%A4%87%EF%BC%9A">&#x4F7F;&#x7528;&#x5230;&#x7684;&#x8BBE;&#x5907;&#xFF1A;</h3><p>1&#x53F0;&#x817E;&#x8BAF;&#x4E91;(&#x6709;&#x516C;&#x7F51;IP) &#xFF0C; MacBook(&#x8054;&#x901A;&#x5BBD;&#x5E26;) &#xFF0C; MacBook&#x5DE5;&#x4F5C;&#x673A;&#x5668;(&#x516C;&#x53F8;&#x7F51;&#x7EDC;) &#xFF0C;&#x8054;&#x60F3;&#x7B14;&#x8BB0;&#x672C;&#x7535;&#x8111;(&#x79FB;&#x52A8;&#x5BBD;&#x5E26;)</p><p>&#x4F7F;&#x7528; ztncui &#x642D;&#x5EFA;&#x670D;</p>]]></description><link>https://www.asany.cn/shi-yong-zerotier-zu-wang/</link><guid isPermaLink="false">654b0d736e5206000196686f</guid><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Wed, 08 Nov 2023 04:52:55 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1558494949-ef010cbdcc31?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE0fHxOZXR3b3JrfGVufDB8fHx8MTY5OTQxOTE0OXww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1558494949-ef010cbdcc31?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE0fHxOZXR3b3JrfGVufDB8fHx8MTY5OTQxOTE0OXww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;"><p></p><h3 id="%E4%BD%BF%E7%94%A8%E5%88%B0%E7%9A%84%E8%AE%BE%E5%A4%87%EF%BC%9A">&#x4F7F;&#x7528;&#x5230;&#x7684;&#x8BBE;&#x5907;&#xFF1A;</h3><p>1&#x53F0;&#x817E;&#x8BAF;&#x4E91;(&#x6709;&#x516C;&#x7F51;IP) &#xFF0C; MacBook(&#x8054;&#x901A;&#x5BBD;&#x5E26;) &#xFF0C; MacBook&#x5DE5;&#x4F5C;&#x673A;&#x5668;(&#x516C;&#x53F8;&#x7F51;&#x7EDC;) &#xFF0C;&#x8054;&#x60F3;&#x7B14;&#x8BB0;&#x672C;&#x7535;&#x8111;(&#x79FB;&#x52A8;&#x5BBD;&#x5E26;)</p><p>&#x4F7F;&#x7528; ztncui &#x642D;&#x5EFA;&#x670D;&#x52A1;&#x7AEF;, &#x670D;&#x52A1;&#x7AEF;&#x642D;&#x5EFA;&#x5728; &#x817E;&#x8BAF;&#x4E91; &#x4E0A;&#xFF0C;&#x5177;&#x4F53;&#x8FC7;&#x7A0B;&#x7565;&#x8FC7;&#x3002;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/key-networks/ztncui?ref=asany.cn"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - key-networks/ztncui: ZeroTier network controller UI</div><div class="kg-bookmark-description">ZeroTier network controller UI. Contribute to key-networks/ztncui development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">key-networks</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/d072ce5582e7fbb730319de4e467ac0f51c375098e361fc0095c17271b75b457/key-networks/ztncui" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;"></div></a></figure><p>&#x5728;&#x8282;&#x70B9;&#x90FD;&#x5DF2;&#x7ECF;&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4E24;&#x4E2A;&#x90E8;&#x5206;&#x3002;</p><h2 id="%E4%B8%80%E3%80%81%E5%B0%86%E6%8C%87%E5%AE%9A%E7%9A%84%E8%AE%BF%E9%97%AE%E8%BD%AC%E5%8F%91%E5%88%B0%E5%85%B7%E4%BD%93%E7%9A%84%E8%8A%82%E7%82%B9%E3%80%82">&#x4E00;&#x3001;&#x5C06;&#x6307;&#x5B9A;&#x7684;&#x8BBF;&#x95EE;&#x8F6C;&#x53D1;&#x5230;&#x5177;&#x4F53;&#x7684;&#x8282;&#x70B9;&#x3002;</h2><p>&#x6BD4;&#x5982;&#xFF1A;192.168.5.0/24 &#x662F;&#x6211; MacBook(&#x8054;&#x901A;&#x5BBD;&#x5E26;)  &#x7684;&#x5C40;&#x57DF;&#x7F51;&#x3002;</p><figure class="kg-card kg-image-card"><img src="https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-08-at-12.38.02@2x.png" class="kg-image" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;" loading="lazy" width="1472" height="632" srcset="https://www.asany.cn/content/images/size/w600/2023/11/CleanShot-2023-11-08-at-12.38.02@2x.png 600w, https://www.asany.cn/content/images/size/w1000/2023/11/CleanShot-2023-11-08-at-12.38.02@2x.png 1000w, https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-08-at-12.38.02@2x.png 1472w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-08-at-12.36.24@2x.png" class="kg-image" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;" loading="lazy" width="2000" height="841" srcset="https://www.asany.cn/content/images/size/w600/2023/11/CleanShot-2023-11-08-at-12.36.24@2x.png 600w, https://www.asany.cn/content/images/size/w1000/2023/11/CleanShot-2023-11-08-at-12.36.24@2x.png 1000w, https://www.asany.cn/content/images/size/w1600/2023/11/CleanShot-2023-11-08-at-12.36.24@2x.png 1600w, https://www.asany.cn/content/images/size/w2400/2023/11/CleanShot-2023-11-08-at-12.36.24@2x.png 2400w" sizes="(min-width: 720px) 720px"></figure><p>&#x8FD9;&#x6837;&#x914D;&#x7F6E;&#x540E;&#xFF0C;&#x6240;&#x6709;&#x8282;&#x70B9;&#x7684; ZeroTierOne &#x5BA2;&#x6237;&#x7AEF;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x4E00;&#x4E2A; </p><figure class="kg-card kg-image-card"><img src="https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-08-at-12.39.03@2x.png" class="kg-image" alt="&#x4F7F;&#x7528; ZeroTier &#x7EC4;&#x7F51;" loading="lazy" width="1758" height="774" srcset="https://www.asany.cn/content/images/size/w600/2023/11/CleanShot-2023-11-08-at-12.39.03@2x.png 600w, https://www.asany.cn/content/images/size/w1000/2023/11/CleanShot-2023-11-08-at-12.39.03@2x.png 1000w, https://www.asany.cn/content/images/size/w1600/2023/11/CleanShot-2023-11-08-at-12.39.03@2x.png 1600w, https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-08-at-12.39.03@2x.png 1758w" sizes="(min-width: 720px) 720px"></figure><p>&#x8FD9;&#x65F6;&#x5019;&#x5176;&#x5B9E;&#x53EA;&#x597D;&#x4E86;&#x7B2C;&#x4E00;&#x6B65;</p><pre><code class="language-bash">&#x276F; traceroute 192.168.5.1
traceroute to 192.168.5.1 (192.168.5.1), 64 hops max, 52 byte packets
 1  10.226.116.193 (10.226.116.193)  207.616 ms  27.482 ms  18.715 ms
 2  * * *
 3  * * *</code></pre><h2 id="%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%8C%E5%9C%A8%E8%8A%82%E7%82%B9%E6%9C%BA%E5%99%A8%E4%B8%8A%E9%85%8D%E7%BD%AE-nat-%E8%BD%AC%E5%8F%91%E3%80%82">&#x7B2C;&#x4E8C;&#x6B65;&#xFF0C;&#x5728;&#x8282;&#x70B9;&#x673A;&#x5668;&#x4E0A;&#x914D;&#x7F6E; NAT &#x8F6C;&#x53D1;&#x3002;</h2><p>&#x8FD9;&#x91CC;&#x6211;&#x662F; Mac &#x6240;&#x4EE5;&#x4E00;&#x4E0B;&#x662F;&#x57FA;&#x4E8E; Mac &#x73AF;&#x5883;&#x3002;</p><h4 id="%E5%BC%80%E5%90%AF-nat-%E8%BD%AC%E5%8F%91">&#x5F00;&#x542F; NAT &#x8F6C;&#x53D1;</h4><pre><code>sudo sysctl -w net.inet.ip.forwarding=1</code></pre><h4 id="%E9%85%8D%E7%BD%AE-nat-%E8%A7%84%E5%88%99">&#x914D;&#x7F6E; NAT &#x89C4;&#x5219;</h4><p>&#x4FEE;&#x6539; /etc/pf.conf &#x6587;&#x4EF6;&#xFF0C;&#x6DFB;&#x52A0;  zt-nat &#x4FE1;&#x606F;&#x3002;&#x6CA1;&#x6709;&#x7684;&#x8BDD;&#x65B0;&#x5EFA;&#x6587;&#x4EF6;</p><pre><code>scrub-anchor &quot;com.apple/*&quot;
nat-anchor &quot;com.apple/*&quot;
nat-anchor &quot;zt-nat&quot;   # &#x8FD9;&#x91CC;&#x4E3A;&#x65B0;&#x52A0;
rdr-anchor &quot;com.apple/*&quot;
dummynet-anchor &quot;com.apple/*&quot;
anchor &quot;com.apple/*&quot;
load anchor &quot;zt-nat&quot; from &quot;/etc/pf.anchors/zt-nat&quot; # &#x8FD9;&#x91CC;&#x4E3A;&#x65B0;&#x52A0;
load anchor &quot;com.apple&quot; from &quot;/etc/pf.anchors/com.apple&quot;</code></pre><p>&#x6DFB;&#x52A0; /etc/pf.anchors/zt-nat &#xFF08;&#x4E0D;&#x7528;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#xFF0C;&#x4F7F;&#x7528;&#x81EA;&#x5DF1;&#x7684;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;&#x66FF;&#x6362;&#xFF09;</p><pre><code>nat on en0 from feth4101:network to any -&gt; en0</code></pre><p>en0 &#x4E3A;&#x5C40;&#x57DF;&#x7F51;&#x7684; &#x7F51;&#x7EDC;&#x63A5;&#x53E3;</p><p>feth4101 &#x4E3A; zerotier &#x7684;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;<br><br>&#x5177;&#x4F53;&#x53C2;&#x8003;&#x81EA;&#x5DF1;&#x7684;&#x73AF;&#x5883;&#xFF0C;ifconfig &#x540E;&#x3002;&#x6709;&#x5C40;&#x57DF;&#x7F51;IP&#x7684;&#x5C31;&#x662F;&#x5C40;&#x57DF;&#x7F51;&#x7684;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;&#x3002;&#x540C;&#x7406;&#x4E5F;&#x53EF;&#x4EE5;&#x627E;&#x5230; zerotier &#x7684;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;&#x3002;</p><h3 id="%E9%87%8D%E5%90%AF-pfctl">&#x91CD;&#x542F; pfctl</h3><pre><code>sudo pfctl -evf /etc/pf.conf</code></pre><h3 id="%E6%B5%8B%E8%AF%95">&#x6D4B;&#x8BD5;</h3><p>MacBook&#x5DE5;&#x4F5C;&#x673A;&#x5668;&#x6D4B;&#x8BD5;</p><pre><code class="language-bash">&#x276F; traceroute 192.168.5.1
traceroute to 192.168.5.1 (192.168.5.1), 64 hops max, 52 byte packets
 1  10.226.116.193 (10.226.116.193)  18.979 ms  19.628 ms  21.663 ms
 2  192.168.5.1 (192.168.5.1)  20.814 ms  20.298 ms  21.693 ms</code></pre><h3 id="%E6%88%90%E5%8A%9F%EF%BC%81%EF%BC%81">&#x6210;&#x529F;&#xFF01;&#xFF01;</h3><p></p><p>Windows &#x7684;&#x5F85;&#x7EED;</p>]]></content:encoded></item><item><title><![CDATA[使用 nginx-proxy 将根域名重定向到 www.{host}]]></title><description><![CDATA[<p>&#x7B2C;&#x4E00;&#x6B65;&#xFF0C;&#x5C06; @ &#x6839;&#x57DF;&#x540D;&#xFF0C;&#x89E3;&#x6790;&#x5230;&#x4E0E; www &#x4E3A;&#x516C;&#x4E00;&#x4E2A;&#x670D;&#x52A1;&#x5668; IP</p><figure class="kg-card kg-image-card"><img src="https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png" class="kg-image" alt loading="lazy" width="1528" height="1490" srcset="https://www.asany.cn/content/images/size/w600/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 600w, https://www.asany.cn/content/images/size/w1000/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 1000w, https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 1528w" sizes="(min-width: 720px) 720px"></figure><p>&#x7B2C;&#x4E8C;&#x6B65;&#xFF0C;&#x4FEE;&#x6539;&#x670D;&#x52A1;&#x90E8;&#x7F72;&#xFF0C;&#x6DFB;&#x52A0;&#x8DDF;&#x57DF;&#x540D;</p><pre><code class="language-yaml">version: &apos;3.1&apos;

services:
  server:
    ....
    environment:
      VIRTUAL_HOST: example.com,</code></pre>]]></description><link>https://www.asany.cn/nginx-proxy/</link><guid isPermaLink="false">654311bec92f960001e6ef84</guid><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Thu, 02 Nov 2023 03:19:10 GMT</pubDate><media:content url="https://www.asany.cn/content/images/2023/11/eanthann_nginx-proxy_9b3f69e6-fc4b-45b0-86df-3fce30334257.png" medium="image"/><content:encoded><![CDATA[<img src="https://www.asany.cn/content/images/2023/11/eanthann_nginx-proxy_9b3f69e6-fc4b-45b0-86df-3fce30334257.png" alt="&#x4F7F;&#x7528; nginx-proxy &#x5C06;&#x6839;&#x57DF;&#x540D;&#x91CD;&#x5B9A;&#x5411;&#x5230; www.{host}"><p>&#x7B2C;&#x4E00;&#x6B65;&#xFF0C;&#x5C06; @ &#x6839;&#x57DF;&#x540D;&#xFF0C;&#x89E3;&#x6790;&#x5230;&#x4E0E; www &#x4E3A;&#x516C;&#x4E00;&#x4E2A;&#x670D;&#x52A1;&#x5668; IP</p><figure class="kg-card kg-image-card"><img src="https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png" class="kg-image" alt="&#x4F7F;&#x7528; nginx-proxy &#x5C06;&#x6839;&#x57DF;&#x540D;&#x91CD;&#x5B9A;&#x5411;&#x5230; www.{host}" loading="lazy" width="1528" height="1490" srcset="https://www.asany.cn/content/images/size/w600/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 600w, https://www.asany.cn/content/images/size/w1000/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 1000w, https://www.asany.cn/content/images/2023/11/CleanShot-2023-11-02-at-11.06.39@2x.png 1528w" sizes="(min-width: 720px) 720px"></figure><p>&#x7B2C;&#x4E8C;&#x6B65;&#xFF0C;&#x4FEE;&#x6539;&#x670D;&#x52A1;&#x90E8;&#x7F72;&#xFF0C;&#x6DFB;&#x52A0;&#x8DDF;&#x57DF;&#x540D;</p><pre><code class="language-yaml">version: &apos;3.1&apos;

services:
  server:
    ....
    environment:
      VIRTUAL_HOST: example.com, www.example.com
      VIRTUAL_PORT: 8080
      LETSENCRYPT_HOST: example.com, www.example.com
    ......</code></pre><pre><code class="language-bash">&#x276F; curl -I http://example.com
HTTP/1.1 301 Moved Permanently
Content-Length: 169
Content-Type: text/html
Date: Thu, 02 Nov 2023 02:03:49 GMT
Location: https://example.com/
Server: nginx/1.21.4

&#x276F; curl -I https://example.com
HTTP/2 200
server: nginx/1.21.4
date: Thu, 02 Nov 2023 02:03:56 GMT
content-type: text/html; charset=utf-8
content-length: 64025
x-powered-by: Express
cache-control: public, max-age=0
etag: W/&quot;fa19-6y7vfdU9YnEXWxUatndF22dWJsM&quot;
vary: Accept-Encoding
strict-transport-security: max-age=31536000</code></pre><p> &#x6839;&#x57DF;&#x540D;&#x80FD;&#x6B63;&#x5E38;&#x4F7F;&#x7528;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5C06;&#x5B83;&#x8F6C;&#x5230; www.example.com &#x800C;&#x4E0D;&#x662F;&#x76F4;&#x63A5;&#x54CD;&#x5E94;&#xFF0C;&#x9700;&#x8981;&#x8986;&#x76D6; example.com &#x7684; location &#x914D;&#x7F6E;&#x3002;</p><p>&#x770B;&#x770B; nginx-proxy &#x7684;&#x914D;&#x7F6E;&#x6620;&#x5C04;&#x76EE;&#x5F55;</p><pre><code>    volumes:
      - ./certs:/etc/nginx/certs:ro
      - ./conf.d:/etc/nginx/conf.d
      - ./vhost.d:/etc/nginx/vhost.d
      - ./html:/usr/share/nginx/html
      - ./htpasswd:/etc/nginx/htpasswd</code></pre><p>&#x9700;&#x8981;&#x518D; vhost.d &#x4E2D;&#x521B;&#x5EFA; `example.com_location_override` &#x6587;&#x4EF6;&#x3002;&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x5982;&#x4E0B;</p><pre><code>location / {
    return 301 https://www.example.com$request_uri;
}</code></pre><p>&#x6700;&#x540E;&#x91CD;&#x542F;&#x4E00;&#x4E0B; nginx-proxy </p><pre><code>docker restart nginx-proxy</code></pre><p>&#x68C0;&#x6D4B;&#x7ED3;&#x679C;</p><pre><code class="language-bash">&#x276F; curl -I https://example.com
HTTP/2 301
server: nginx/1.23.4
date: Thu, 02 Nov 2023 03:17:53 GMT
content-type: text/html
content-length: 169
location: https://www.example.com/
strict-transport-security: max-age=31536000</code></pre><p>&#x5B8C;&#x6210;</p>]]></content:encoded></item><item><title><![CDATA[Coming soon]]></title><description><![CDATA[<p>This is &#x8349;&#x8272;&#x9065;&#x770B;&#x8FD1;&#x5374;&#x65E0;, a brand new site by limaofeng that&apos;s just getting started. Things will be up and running here shortly, but you can <a href="#/portal/">subscribe</a> in the meantime if you&apos;d like to stay up to date and receive emails when</p>]]></description><link>https://www.asany.cn/coming-soon/</link><guid isPermaLink="false">65426b192235ff00017706b3</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[limaofeng]]></dc:creator><pubDate>Wed, 01 Nov 2023 15:13:29 GMT</pubDate><media:content url="https://static.ghost.org/v4.0.0/images/feature-image.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://static.ghost.org/v4.0.0/images/feature-image.jpg" alt="Coming soon"><p>This is &#x8349;&#x8272;&#x9065;&#x770B;&#x8FD1;&#x5374;&#x65E0;, a brand new site by limaofeng that&apos;s just getting started. Things will be up and running here shortly, but you can <a href="#/portal/">subscribe</a> in the meantime if you&apos;d like to stay up to date and receive emails when new content is published!</p>]]></content:encoded></item></channel></rss>