Preface¶
When developing or calling online services like Claude, ChatGPT, and Gemini within DSH (DeepSeek Harness), the common problem isn’t “whether a proxy is enabled,” but whether the traffic actually exits through the expected node and whether that IP appears as normal user traffic to various AI interfaces. After switching vendors or nodes, this kind of issue often requires manual IP checks and switching tools for comparison, and it is easy to expose Clash subscriptions and credentials to third-party pages.
huanlin-labs/dsh-vpn-guard is a DSH plugin under the community directory category admin-security: it uses a unified page to answer three types of questions regarding exit and IP-side risks; the core probe does not bind to a single VPN vendor; optional Clash/Mihomo adapters enhance node listing and switching capabilities. The plugin declares that it does not read subscription links, credentials, cookies, or browser configurations, and probe results are only written to the local ~/.dsh/vpn-guard/.
What is This¶
The maintainer is huanlin-labs. Current package version 0.5.0 (MIT). Positioned as a “Universal Core + Optional Adapters”: WireGuard, OpenVPN, Tailscale, sing-box, v2rayN, Clash Verge, Mihomo, system proxy, etc., as long as the probe can detect the exit, they can share the same monitoring page; features that adapters cannot provide remain in a neutral “Not Configured” state, without faking alerts or zero scores.
The page aims to answer three things (from original source material):
- Whether traffic leaves from the expected exit: Exit IP, country, ASN/ISP, latency.
- Whether AI services will treat this IP as normal traffic: View by service Claude, ChatGPT, Gemini, Gemini API, Codex, Muse.
- Whether the IP is “suitable” for social platforms (IP-side only; account and device risks are out of scope).
Core Features¶
General Exit & Scoring¶
- Lightweight check only refreshes real-time status and does not override AI scores.
- Only a full run replaces the previous full AI snapshot; incomplete runs preserve the last complete result and mark them as incomplete.
- Evidence is
null, displayed as “— / Insufficient Evidence” in the interface, without forcibly lowering the score. - Stable AI KPI takes the rolling median of the last 3 complete runs; full snapshots are persisted to
~/.dsh/vpn-guard/last-full.json, so the page won’t be blank after restart. - Scoring rules are detailed in the repository
docs/SCORING.md(v2, corresponding to 0.5.0).
Optional Clash / Mihomo Adapters¶
| Capabilities | General Core | Clash / Mihomo Adapter |
|---|---|---|
| Exit IP / Country / ASN / Latency | Direct connect, HTTP proxy, or TUN | Supported |
| Controller Reachability | — | HTTP host:port or Clash Verge named pipe auto |
| Node List / Selection Groups | — | When controller exposes /proxies |
| Node Switching | — | Whitelist groups + two-step confirmation |
| Subscription Traffic / Expiry | — | When node info is exposed |
| Process / Service Count | Optional, custom process names | Optional |
The Clash subpage is read-only regarding controller status (core version, mode, connections, node latency, etc.), refreshing every 15 seconds when opened; it does not edit YAML or subscription files. Scripts can call GET /__dsh-vpn-guard/clash to get the same aggregated data.
Optional Enhancement Tools¶
When ipjudge or ipcheck are not installed, the page can still use general exit checks; rows for various AI services may fall back to “— / Insufficient Evidence”. nodesCsvPath, keyNodesPath, etc., are used for optional node health and reference scores.
Environment & Dependencies¶
- DSH Desktop, and webServer service enabled.
- Node.js 20.11+ (provided by DSH, consistent with
enginesinpackage.json). - Available VPN/proxy routes, or Clash/Mihomo compatible controller (as needed).
Installation & Enabling¶
After obtaining the absolute path to the plugin directory, install via DSH plugin manager (command from repository README, do not use the dsh plugin add concatenation format not appearing in the materials):
plugin_manager install_bundle target="<absolute path to this directory>"
After the first install, restart DSH once. The sidebar will show a VPN Guard / VPN Guard entry.
Configuration Essentials¶
Adjust in the plugin Settings / Settings. The fields and default values in the table below are based on the README:
| Key | Meaning | Default |
|---|---|---|
provider |
auto, clash, system, none |
auto |
proxyMode |
auto, http, tun, none |
auto |
controller |
Clash/Mihomo controller host:port, auto (auto-detect Clash Verge), empty means not used |
Empty |
proxyHost / proxyPort |
Local HTTP proxy used for exit probe | 127.0.0.1:7890 |
selectorGroup |
Group displayed as “Current Node”; empty takes first group / GLOBAL | Empty |
allowedSwitchGroups |
Groups allowed to be operated by the switch button (comma-separated); empty disables switching | Empty |
processNames |
Process names to count, e.g., clash.exe,mihomo.exe |
Empty |
serviceName |
Windows service name | Empty |
ipjudgePath / ipcheckPath |
Optional enrichment tool path | Empty |
nodesCsvPath / keyNodesPath |
Optional node health / reference score files | Empty |
Everything except the exit probe is optional; missing adapters display neutral “Not Configured” and do not show fake red zero scores.
Clash Verge / Mihomo Example¶
Clash Verge Rev often exposes the controller via Windows named pipes. You can click Detect Clash Verge on the settings page to automatically fill controller: "auto", proxy port, and process name without changing Clash Verge’s own settings. Example JSON:
{
"provider": "clash",
"proxyMode": "http",
"controller": "auto",
"proxyPort": 7900,
"selectorGroup": "节点选择",
"allowedSwitchGroups": ["节点选择"]
Other builds can still use an explicit HTTP controller, such as 127.0.0.1:9097.
WireGuard / OpenVPN / Tailscale (TUN, no local HTTP port)¶
{
"provider": "system",
"proxyMode": "tun",
"controller": "",
"allowedSwitchGroups": []
}
System Proxy Only¶
{
"provider": "system",
"proxyMode": "http",
"proxyPort": 7890
}
Security Boundaries & Usage Notes¶
- Do not modify VPN configuration files, system proxy, or firewall; monitoring is primarily read-only.
- Node switching only calls
PUT /proxies/<group>for groups withinallowedSwitchGroupsand requires two-step token and confirmation dialog; switching will not be automatic. - The client page is a local service; probes will access public IP intelligence endpoints, and the material does not declare uploading user data to other third parties.
- The plugin runs with current DSH process permissions; it is advisable to review the source code and MIT license yourself before installing. The DSH ecosystem is “everything is a plugin”; the community directory SkillHub Plugin Page is an independent site with no official affiliation with DeepSeek / Huanfang.
- The repository currently has 1 star on GitHub (public metric, for ecosystem reference only).
Suitable for DSH desktop users who need to view exit and AI-related IP risks on a unified machine and want optional enhancement of Clash/Mihomo capabilities; not suitable for handing over problems beyond the IP side, such as account bans and device fingerprints, to this plugin.
Further Reading¶
- Community directory: https://www.skillhub.cn/plugins/huanlin-labs/dsh-vpn-guard
- Source code and README: https://github.com/huanlin-labs/dsh-vpn-guard
- Design details:
docs/DETAIL.md; Scoring:docs/SCORING.md