<?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"><channel><title><![CDATA[网络小笔记]]></title><description><![CDATA[网络小笔记]]></description><link>https://netfixnotes.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 01:16:12 GMT</lastBuildDate><atom:link href="https://netfixnotes.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why your dev tools break when the VPN is on (and a 10-minute checklist to fix it)]]></title><description><![CDATA[Localhost, Docker, package registries and SSH: what actually changes when a VPN client takes over your routes.]]></description><link>https://netfixnotes.hashnode.dev/why-your-dev-tools-break-when-the-vpn-is-on-and-a-10-minute-checklist-to-fix-it</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/why-your-dev-tools-break-when-the-vpn-is-on-and-a-10-minute-checklist-to-fix-it</guid><category><![CDATA[Docker]]></category><category><![CDATA[networking]]></category><category><![CDATA[vpn]]></category><category><![CDATA[Windows]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Sat, 21 Nov 2026 01:20:36 GMT</pubDate><content:encoded><![CDATA[<p>You sit down in a cafe, join the Wi-Fi, switch on a VPN because it's a shared network, and ten minutes later <code>npm install</code> hangs, your Docker containers can't reach each other, and an SSH session to a staging box drops every few minutes. None of this means the VPN is "bad". It means a VPN client changes three things your tooling quietly depends on: <strong>routes, DNS, and MTU</strong>.</p>
<p>Here is the checklist I run through before blaming anything else.</p>
<h2>1. Check which interface owns the default route</h2>
<p>When a VPN connects, it usually installs a new default route through its virtual adapter. Everything that isn't explicitly excluded now goes through the tunnel.</p>
<ul>
<li>Windows: <code>route print -4</code> and look at the <code>0.0.0.0</code> lines and their metrics</li>
<li>macOS: <code>netstat -rn | grep default</code></li>
<li>Linux: <code>ip route</code></li>
</ul>
<p>If your company VPN and a consumer VPN are both installed, two adapters can fight over the default route. Only run one at a time.</p>
<h2>2. Make sure local subnets are still local</h2>
<p>Docker Desktop, WSL2 and many local dev setups use private ranges like <code>172.17.0.0/16</code> or <code>192.168.x.x</code>. Some VPN clients route these into the tunnel too, so your browser can no longer reach <code>http://192.168.1.20:3000</code> on your own laptop or LAN.</p>
<p>Look for a setting called something like "allow LAN access" or "bypass local network" in the client and turn it on. If containers still can't talk, compare your Docker network ranges with the routes from step 1 and move the Docker range if they overlap.</p>
<h2>3. Watch DNS, not just IP</h2>
<p>After connecting, run <code>nslookup registry.npmjs.org</code> (or any host you use) and note which DNS server answers. Two common failures:</p>
<ul>
<li>The VPN pushes its own DNS, but an internal hostname like <code>git.internal</code> only resolves on your office DNS.</li>
<li>Your OS keeps using the cafe's DNS for some lookups, which defeats part of the reason you turned the VPN on.</li>
</ul>
<p>On Windows, <code>ipconfig /all</code> shows which adapter has which DNS server. Flushing with <code>ipconfig /flushdns</code> after switching networks clears a surprising number of "it worked five minutes ago" problems.</p>
<h2>4. Lower the MTU if large transfers stall</h2>
<p>Tunnels add headers, so packets that were fine before can be too big now. Symptoms: small requests work, but <code>git clone</code> of a big repo, <code>docker pull</code>, or an SSH session that prints a lot of output just freezes.</p>
<p>Test with <code>ping -f -l 1400 example.com</code> on Windows (<code>ping -D -s 1400</code> on macOS) and reduce the size until it stops fragmenting. Many clients have an MTU option; otherwise you can set it on the virtual adapter.</p>
<h2>5. Keep SSH sessions alive</h2>
<p>NAT on the VPN side may drop idle connections faster than your home router does. Add this to <code>~/.ssh/config</code>:</p>
<pre><code>Host *
  ServerAliveInterval 30
  ServerAliveCountMax 4
</code></pre>
<h2>6. Pick a nearby location for dev work</h2>
<p>Latency matters more than bandwidth for package managers that make hundreds of small requests. For coding sessions I pick the closest location the client offers rather than a far one, and only switch when I actually need a different region.</p>
<h2>What I use</h2>
<p>On my Windows laptop I currently use <a href="https://huozhongvpn.com/en/">HZVPN</a> on cafe and hotel networks. The free plan covers 1 device, VIP covers 3 and SVIP covers 5, so I can keep the same account on my laptop and phone when I upgrade. If you want to try the same setup, the <a href="https://huozhongvpn.com/en/">HZVPN for PC</a> client is the one I tested with the steps above; any decent client should behave similarly once routes, DNS and MTU are sorted.</p>
<h2>TL;DR</h2>
<ol>
<li>One VPN client at a time; check the default route.</li>
<li>Allow LAN access so localhost, Docker and WSL keep working.</li>
<li>Confirm which DNS server is answering.</li>
<li>Lower the MTU if big transfers freeze.</li>
<li>Add SSH keep-alives.</li>
<li>Use a nearby location for development.</li>
</ol>
<p><em>Disclosure: this post links to the website of the VPN service I use.</em></p>
]]></content:encoded></item><item><title><![CDATA[Install a vendor CLI from the official page, not from a copied command]]></title><description><![CDATA[Command-line installers are convenient, and that is also why they get copied into random gists and comment threads. If you paste a one-liner you found in a…]]></description><link>https://netfixnotes.hashnode.dev/install-vendor-cli-from-official-page</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/install-vendor-cli-from-official-page</guid><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Thu, 12 Nov 2026 11:43:43 GMT</pubDate><content:encoded><![CDATA[<p>Command-line installers are convenient, and that is also why they get copied into random gists and comment threads. If you paste a one-liner you found in a search result, you are trusting whoever published that script, not the vendor.</p>
<p>The safer habit is to open the official site first, then copy the command from there. Confirm the domain before you run anything that pipes a remote script into a shell. If the official page lists a Windows example such as a PowerShell installer, use that text as published, and do not replace the host with a shorter mirror someone posted in a forum.</p>
<p>After install, use the vendor's own login and connect commands, then verify the exit IP in a browser. If a node is marked unavailable, switch to another location in the same country instead of reinstalling the binary. Graphical and CLI clients are not interchangeable: flags and config paths belong in the official notes for that OS.</p>
<p>I keep <a href="https://huozhongvpn.com/">HZVPN</a> as the source for both the GUI packages and the Windows CLI steps, including the login and connect commands. If a blog post and the official site disagree, the official site wins.</p>
]]></content:encoded></item><item><title><![CDATA[手机里的网络工具，怎么判断该不该留]]></title><description><![CDATA[清理手机时，我发现自己装了三四个网络工具，有的早就不用了。说说怎么判断一个工具值不值得留下。 一个月都没打开过的，基本可以删了。 去应用商店看看最近的更新时间，长期不更新的工具可能存在兼容和安全问题。 确认工具来自正规官网，比如ikuuu.me加速器官网这类关键词搜到的网站，也要核对是否为官方地址。…]]></description><link>https://netfixnotes.hashnode.dev/phone-network-tools-keep-or-delete</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/phone-network-tools-keep-or-delete</guid><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Sun, 01 Nov 2026 16:31:09 GMT</pubDate><content:encoded><![CDATA[<p>清理手机时，我发现自己装了三四个网络工具，有的早就不用了。说说怎么判断一个工具值不值得留下。</p>
<h2>看使用频率</h2>
<p>一个月都没打开过的，基本可以删了。</p>
<h2>看是否还在维护</h2>
<p>去应用商店看看最近的更新时间，长期不更新的工具可能存在兼容和安全问题。</p>
<h2>看官方渠道</h2>
<p>确认工具来自正规官网，比如<a href="http://www.j6y6.com/">ikuuu.me加速器官网</a>这类关键词搜到的网站，也要核对是否为官方地址。</p>
<h2>看权限</h2>
<p>检查工具申请了哪些权限，和功能无关的权限多，说明有问题。</p>
<h2>看订阅状态</h2>
<p>有些工具在后台还在自动续费，删除前先取消订阅。</p>
<h2>保留一个主力</h2>
<p>留一个用着最顺手的作为主力，再留一个备用就够了。</p>
<h2>定期清理</h2>
<p>每个季度清理一次，手机会更清爽。</p>
<h2>卸载前备份设置</h2>
<p>有些工具里保存了自定义的设置，卸载前截个图或导出，以后需要时能快速恢复。</p>
<p>少即是多，手机里的工具也一样。</p>
]]></content:encoded></item><item><title><![CDATA[装软件前，先学会辨别安全的下载渠道]]></title><description><![CDATA[帮朋友修电脑时发现，很多问题都源于从不明网站下载的软件：弹窗广告、浏览器主页被改，甚至中了病毒。 软件最好从官方网站或系统自带的应用商店下载，安全性有保障。 有人习惯在书游下载站这类第三方下载站找软件，如果一定要用，注意看清下载按钮，别点到广告，安装时取消勾选捆绑软件。…]]></description><link>https://netfixnotes.hashnode.dev/safe-software-download-channels</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/safe-software-download-channels</guid><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Fri, 30 Oct 2026 13:42:56 GMT</pubDate><content:encoded><![CDATA[<p>帮朋友修电脑时发现，很多问题都源于从不明网站下载的软件：弹窗广告、浏览器主页被改，甚至中了病毒。</p>
<h2>官网和应用商店优先</h2>
<p>软件最好从官方网站或系统自带的应用商店下载，安全性有保障。</p>
<h2>第三方下载站要谨慎</h2>
<p>有人习惯在<a href="http://www.bambookgame.com/">书游下载站</a>这类第三方下载站找软件，如果一定要用，注意看清下载按钮，别点到广告，安装时取消勾选捆绑软件。</p>
<h2>核对文件来源</h2>
<p>正规软件一般有数字签名，安装时系统提示“未知发布者”就要多留个心眼。</p>
<h2>装个杀毒软件</h2>
<p>系统自带的安全防护就够用，记得保持开启并定期扫描。</p>
<h2>中招了怎么办</h2>
<p>如果已经装了可疑软件，先断开网络，卸载可疑程序，再用安全软件全盘扫描。浏览器主页被改的话，检查扩展程序并重置浏览器设置。重要账号最好在另一台干净的设备上修改密码。</p>
<p>多花一分钟确认，省下几小时的麻烦。</p>
]]></content:encoded></item><item><title><![CDATA[在海外上网，隐私保护的几个好习惯]]></title><description><![CDATA[出门在外，网络环境比在家复杂得多。除了能用、好用，隐私安全同样重要，分享几个日常习惯。 一个网站泄露，其他账号也跟着遭殃。用密码管理器给每个账号设置不同的密码。 定期检查手机里各个 App 的权限，用不上的定位、通讯录权限及时关掉。…]]></description><link>https://netfixnotes.hashnode.dev/overseas-privacy-habits</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/overseas-privacy-habits</guid><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Fri, 30 Oct 2026 13:40:20 GMT</pubDate><content:encoded><![CDATA[<p>出门在外，网络环境比在家复杂得多。除了能用、好用，隐私安全同样重要，分享几个日常习惯。</p>
<h2>密码不要重复使用</h2>
<p>一个网站泄露，其他账号也跟着遭殃。用密码管理器给每个账号设置不同的密码。</p>
<h2>留意 App 权限</h2>
<p>定期检查手机里各个 App 的权限，用不上的定位、通讯录权限及时关掉。</p>
<h2>选工具看隐私政策</h2>
<p>有朋友问我<a href="http://www.herverai.com/">迷雾通</a>怎么样，我的建议是不管选哪款，先读一下它的隐私政策，看是否记录使用数据。</p>
<h2>系统及时更新</h2>
<p>系统和 App 的更新往往修补了安全漏洞，别一直拖着不升级。</p>
<h2>定期清理不用的账号</h2>
<p>出国前后注册了不少临时账号，订机票、订酒店、租车，用完就忘。这些账号如果用的是同一个密码，风险很大。每隔几个月整理一次，把不再使用的账号注销，留下的开启两步验证。</p>
<p>安全意识养成习惯，出门在外更安心。</p>
]]></content:encoded></item><item><title><![CDATA[Windows 上加速器/VPN 连不上？按这 8 步排查]]></title><description><![CDATA[很多人遇到“点了连接一直转圈”或者“显示已连接但网页打不开”，第一反应是换软件。其实大部分问题出在本机环境，按下面顺序排查，通常 10 分钟内能找到原因。 断开 VPN，打开任意国内网站。如果本地网络都不稳定，先处理路由器或宽带问题。可以在命令提示符里执行： 丢包超过 5%…]]></description><link>https://netfixnotes.hashnode.dev/windows-vpn-8</link><guid isPermaLink="true">https://netfixnotes.hashnode.dev/windows-vpn-8</guid><category><![CDATA[networking]]></category><category><![CDATA[vpn]]></category><category><![CDATA[Windows]]></category><dc:creator><![CDATA[网络小笔记]]></dc:creator><pubDate>Sat, 24 Oct 2026 16:44:04 GMT</pubDate><content:encoded><![CDATA[<p>很多人遇到“点了连接一直转圈”或者“显示已连接但网页打不开”，第一反应是换软件。其实大部分问题出在本机环境，按下面顺序排查，通常 10 分钟内能找到原因。</p>
<h2>1. 先确认本地网络本身正常</h2>
<p>断开 VPN，打开任意国内网站。如果本地网络都不稳定，先处理路由器或宽带问题。可以在命令提示符里执行：</p>
<pre><code>ping 223.5.5.5 -n 20
</code></pre>
<p>丢包超过 5% 或延迟忽高忽低，说明问题在本地线路。</p>
<h2>2. 检查系统时间</h2>
<p>很多加密协议依赖证书校验，系统时间偏差太大会导致握手失败。打开“设置 → 时间和语言”，开启“自动设置时间”。</p>
<h2>3. 关闭其他代理和加速工具</h2>
<p>同时开着两个代理客户端，或者浏览器里装了代理插件，会互相抢路由。检查“设置 → 网络和 Internet → 代理”，确认“使用代理服务器”是关闭的（由客户端自己接管时除外）。</p>
<h2>4. 防火墙和杀毒软件</h2>
<p>第三方安全软件有时会拦截虚拟网卡。临时把客户端加入白名单再试；不要直接关闭防火墙了事。</p>
<h2>5. 虚拟网卡（TAP/TUN）是否正常</h2>
<p>打开“设备管理器 → 网络适配器”，看有没有带黄色感叹号的虚拟网卡。有的话卸载后重新安装客户端。</p>
<h2>6. 刷新 DNS 缓存</h2>
<p>显示已连接但打不开网页，常见原因是 DNS 缓存。管理员身份运行：</p>
<pre><code>ipconfig /flushdns
netsh winsock reset
</code></pre>
<p>执行完重启电脑。</p>
<h2>7. 换线路，而不是一直重试同一个</h2>
<p>同一条线路高峰期可能拥堵。客户端如果有自动选线功能，先用自动；不行再手动换几个地区对比延迟。</p>
<h2>8. 确认下载的是官方客户端</h2>
<p>来源不明的“破解版”“绿色版”经常被改过，连不上只是小事，账号和隐私泄露才是大事。建议只从官网下载。以火种加速为例，Windows 版在 <a href="http://51eqigo.com/">火种加速器官网</a> 就能直接获取。</p>
<h2>小结</h2>
<p>排查顺序：本地网络 → 系统时间 → 代理冲突 → 安全软件 → 虚拟网卡 → DNS → 线路 → 客户端来源。按顺序走一遍，大部分“连不上”都能解决。</p>
]]></content:encoded></item></channel></rss>