为 wcferry 开放 Windows 防火墙端口 10086 时,误以为这是"内网穿透"操作,担心安全性。
为 wcferry 开放 Windows 防火墙端口 10086 时,误以为这是"内网穿透"操作,担心安全性。
netsh advfirewall firewall add rule 只是允许本机 WSL2 虚拟机访问 Windows 主机的端口。流量路径在单台电脑内部:
WSL2 (Linux 虚拟机) → 本机虚拟网卡 → Windows 主机 :10086不涉及外网、不暴露端口到互联网。和 ngrok/frp/端口映射完全不是一回事。
无修复必要——操作本身就是正确的。但需要理解:
echo "Lesson: firewall port open not public"
wc -l lessons/contrib/firewall-port-open-not-public.mdExpected Output:
Lesson: firewall port open not public
# (line count)WSL2 + Windows 混合开发,任何需要 WSL 访问 Windows 端口的情况(RAG API、微信机器人等)。