Files
ykxmz/windows/放行防火墙_以管理员运行.bat
xmz7891 b62ac865ea ykxmz 1.5.0:修复手表端 TLS 证书校验 + MTU 修复网络稳定性
被控端
- 修复 MTU 问题:夹 MSS + 路径 MTU 探测(公网可用率 48% -> 100%)
- 复用 HTTP 连接(免掉每次新建 TLS 的 30% 握手失败)
- 每分钟回头找局域网,自动切回快 400 倍的路径
- 画面心跳帧:静止时省流量,客户端仍知道流是活的
- 锁屏时给出可操作的提示

手表端
- 内置 GTS Root R4 / GlobalSign Root CA,修 SSLHandshakeException
- 连接错误翻译成人话(证书/时间/解析/超时分别提示)
- 经中转连上后用服务器报的地址刷新已配对记录
- 新增局域网连接页面、服务器延迟检测

服务器端
- 支持 chunked 请求体(修每 16 秒一次的连接错乱与大面积 502)
- 网络调优脚本 net-tune.sh(开机自动应用)
- 管理页:批量删除、网络体检、下载区
- 隧道改 HTTP/2 + 双连接

文档
- 许可协议 / 安装前必读 / 安装后须知(作者:小麦子)
2026-10-06 19:01:05 +08:00

26 lines
1.5 KiB
Batchfile

@echo off
chcp 936 >nul
setlocal
echo [1/4] 删除针对本程序的「阻止」规则 ...
netsh advfirewall firewall delete rule name="lanremote-agent.exe" dir=in >nul 2>nul
netsh advfirewall firewall delete rule name="python.exe" dir=in >nul 2>nul
netsh advfirewall firewall delete rule name="pythonw.exe" dir=in >nul 2>nul
echo [2/4] 删除旧的放行规则 ...
netsh advfirewall firewall delete rule name="LAN Remote TCP" >nul 2>nul
netsh advfirewall firewall delete rule name="LAN Remote UDP" >nul 2>nul
echo [3/4] 重新放行 ...
netsh advfirewall firewall add rule name="LAN Remote TCP" dir=in action=allow protocol=TCP localport=8851 profile=any
netsh advfirewall firewall add rule name="LAN Remote UDP" dir=in action=allow protocol=UDP localport=8766 profile=any
echo.
echo ------------------------------------------------------------
echo [4/4] 添加程序级放行(治本:防止系统再自动生成阻止规则)...
echo ------------------------------------------------------------
netsh advfirewall firewall delete rule name="LAN Remote App TCP" >nul 2>nul
netsh advfirewall firewall delete rule name="LAN Remote App UDP" >nul 2>nul
netsh advfirewall firewall add rule name="LAN Remote App TCP" dir=in action=allow program="C:\Users\shu\Desktop\LanRemote-Agent\ykxmz.exe" enable=yes protocol=TCP profile=any
netsh advfirewall firewall add rule name="LAN Remote App UDP" dir=in action=allow program="C:\Users\shu\Desktop\LanRemote-Agent\ykxmz.exe" enable=yes protocol=UDP profile=any
echo.
echo 完成。
endlocal
exit /b 0