Repository navigation
Releases
Releases · Denszh/ai-net-guard
AI NetGuard v1.3.11
What's New in v1.3.11
Cross-Platform
- Local Pre-flight Guard Proxy (
127.0.0.1:18999): Eliminates the "first leaked request on IP drift" window via singleflight exit-IP pre-flight checks, 3s TTL caching, instant termination of active protected tunnels upon drift or selector switch, built-in 0-byte leak drill (POST /api/guard-proxy/drill/ in-app drill), and Fail-Closed / Fail-Open quit control. - Native Pure-TUN Mode Support: Full support for pure-TUN VPN/proxy clients without a local HTTP proxy port (such as Surflare
Default (TUN), WireGuard, Clash pure-TUN, and commercial VPNs). Automatically detects virtual TUN interfaces as ready channels, probes exit IPs directly through OS TUN routing, passes health audit & onboarding without requiring a local proxy port or system proxy, and preventssetup claudefrom writing dead proxy ports into~/.claude/settings.json.
Windows
- Recognizes Surflare and additional VPN/TUN adapters (
surflare,singbox,hiddify,surfshark,mullvad,nord,expressvpn) in tunnel discovery and process resolution.
macOS
- Native POSIX-socket Guard Proxy server (
GuardProxyServer) integrated withMonitorEngineand Overview UI, plus aligned pure-TUN detection, probing, and health audit scoring.
AI NetGuard v1.3.10
What's New in v1.3.10
Cross-Platform
- In-App Quick Node Switching & Route Guidance (换节点 / 改道): Quickly relax geo/IP locks, switch proxy selector nodes, or reset an app back to default proxy without leaving AI NetGuard.
- Disable-Monitoring Route Guidance: Warns when disabling monitoring for an app that still has proxy routing rules, with one-click jump to route adjustment.
Windows
- Clash Verge Rev Named Pipe Hot-Switch: Connects directly to
\\.\pipe\verge-mihomo(with TCP controller fallback) for instant in-app selector node switching. - Auto-Updater HTTP 403 Fallback: Automatically falls back from shared proxy to direct connection and GitHub web redirect when
api.github.comhits anonymous rate limits.
macOS
- Shadowrocket Single-App Independent Modules: Generates isolated per-app
#!name=AI NetGuard · <App>modules (ai-netguard rules --format shadowrocket --app "<App>") and updates Agent prompts & docs to strictly forbid modifying the user's active primary.conf.
AI NetGuard v1.3.9
Full Changelog: v1.3.8...v1.3.9
AI NetGuard v1.3.8
Full Changelog: v1.3.7...v1.3.8
AI NetGuard v1.3.7
Full Changelog: v1.3.6...v1.3.7
AI NetGuard v1.3.6
Full Changelog: v1.3.5...v1.3.6
AI NetGuard v1.3.5
Full Changelog: v1.3.4...v1.3.5
AI NetGuard v1.3.4
What's New in v1.3.4
Hardened from real-world Shadowrocket & multi-node agent routing feedback:
- Post-Write Live Verification (
--verify&ai-netguard verify/ MCPverify_route): Probes real exit country/region (supports both Cloudflare/cdn-cgi/traceand YouTube/GoogleGLregion codes) and detects node-name vs actual-geography mismatches or un-reloaded client caches. - Node Geo Probing (
ai-netguard nodes --probe/ MCPlist_proxy_nodes): Inspects active proxy exits and Clash/Mihomo controller groups, explicitly warning that node display names do not guarantee exit geography. - Shadowrocket Semi-Auto Safe Import (
ai-netguard shadowrocket add): Merges rules into a clean.conf(auto-fixingFINAL,,PROXY->FINAL,PROXY), refuses direct writes to iCloud.dbfiles, serves once over127.0.0.1, and activates viashadowrocket://config/add/. - Per-App Policy & Audit Fixes:
rules --include-appsnow inherits each app'scustomPolicyNamefromconfig.jsonrather than overwriting all services with a single policy.- Fixed
rules --help,app --help, andverify --help. - Eliminated false
auditgeo-fence alerts on single-port domain-split apps using generic1.1.1.1probes, coalesced rapid consecutive undo snapshots (2-minute window), and labeled transient reconnect leaks.
AI NetGuard v1.3.3
What's New in v1.3.3
- Intel Mac (x64) Support: Added native
AINetGuard-v1.3.3-macos-x64.zipbuild alongside Apple Silicon (arm64), matching separate-architecture packaging. - One-Step Custom App Routing (UI + CLI + MCP):
- New
ai-netguard app routeCLI command andmanage_appMCP tool to add/route any app (e.g., Google Chrome, Perplexity, Notion, Gemini CLI) with preset domains, geo-fence, Kill Switch, and proxy rules in one step. - Added quick-route preset bar and one-click "Copy for AI Agent" autopilot prompt directly inside Settings and per-app cards.
- Custom configured apps are automatically included in
RuleGeneratoracross all 7 proxy clients (--include-apps).
- New
- UI Cleanup: Removed the misleading "换固定IP / 固定当前 IP" action button from macOS Overview/Dashboard and Windows Web UI topbar; baseline indicator now appears only when an exit baseline is explicitly configured.
AI NetGuard v1.3.2
AI NetGuard v1.3.2
修复
- Clash Verge 开 TUN 时,代理卡片显示「本地代理」和默认图标:Clash Verge 的服务模式以 root 身份运行内核,以前识别不到是哪个软件在监听代理端口。现在会从正在运行的进程里找出代理客户端,正确显示 Clash Verge 的名称和图标。Mihomo Party、FlClash、Stash、sing-box 等客户端同样适用。
- 同时开着多个代理客户端时,按端口判断当前用的是哪一个,避免显示成另一个已安装的客户端。
- TUN 网卡的地址落在 fake-ip 段(
198.18.0.0/15、28.0.0.0/8)时,直接判定为 VPN TUN。自定义了 TUN 路由范围的用户也能正确识别。 - Windows:当程序无权读取代理进程的路径(比如以系统服务身份运行)时,改为从进程列表中获取程序名。
v1.3.1 已修复「开启 Clash TUN 后应用显示为内网」的问题。本版本在此基础上补全了代理客户端的识别。
验证
- macOS 内置自检 63 项全部通过,新增对「Clash Verge TUN + Tailscale + Wi-Fi」真实路由快照的端到端测试。
- Windows 单元测试全部通过,amd64 / arm64 的静态检查(
go vet)通过。
安装与校验
| 文件 | SHA-256 |
|---|---|
AINetGuard-v1.3.2-macos-arm64.zip |
a1be46a0a7d6ff1dd0d862cedb1fb74313c38ef8b877a2dee4a6562737580f47 |
AINetGuard-v1.3.2-windows-amd64.zip |
af3e2ab6bfd24cc5411228dfce0eed3f0a129cd901005c24ac9ab89b50eb942d |
AINetGuard-v1.3.2-windows-arm64.zip |
bd68dd2d489bc25745b0da84596250d07a2372cd31bd34dab0d21992c5b09ba9 |
macOS 老用户:打开应用后,底栏会出现「更新 1.3.2」按钮,点击即可一键升级;也可以在终端运行 ai-netguard update --yes。
首次下载解压后,运行前请在终端清理隔离属性:
xattr -dr com.apple.quarantine /Applications/AINetGuard.app
open /Applications/AINetGuard.app