Preface¶
DeepSeek Harness (DSH) provides a Web GUI for managing agent tasks. By default, access control for the web server is usually strict or requires modifying underlying configurations. The dsh-net-access plugin offers a centralized configuration scheme via the settings page, supporting scoping access to Local, Tailscale, Local Network, or turning it Off.
Core Features¶
This plugin controls the reachability of the Web GUI through a set of configuration items. Its core capabilities include:
- Four Access Modes: Supports “Local Only”, “Tailscale Only”, “All Local Networks”, and “Off” states.
- Hot-swap Mechanism: Except for the “Off” mode, the other three modes support direct switching on the settings page without restarting the process.
- Trust Boundary: Intercepts unauthorized requests via Host header verification, enforcing access control at the application layer.
- Auto-detection: Automatically detects the Tailscale network interface name and resolves the tailnet address without requiring manual IP entry.
- Extended Authorization: Supports adding additional authorized
host[:port]entries viaextraTrustedHosts.
Installation and Activation¶
Plugin installation requires adding it via the DSH plugin manager.
- Execute the installation command:
dsh plugin --profile web add dsh-net-access
- After installation, the GUI must be restarted to load the new bundle:
dsh --profile web
Upon startup, the accessible URL will be printed, e.g., `dsh web: http://127.0.0.1:3080/?token=...`.
Configuration and Mode Description¶
Configuration is located in DSH’s Settings → Remote Access, and can also be written into the config block of cordis.patch.yml.
| Field | Default | Description |
|---|---|---|
mode |
local |
local, tailscale, all, or off |
address |
"" |
Fixed tailnet address; auto-detected if left empty |
extraTrustedHosts |
[] |
Additional accepted host[:port] authorizations |
Mode Differences and Working Principles¶
DSH binds the HTTP listening port only once at startup; therefore, changing the binding address (such as in Off mode) requires a restart. The other three modes maintain the socket listening on all network interfaces, filtering requests via an application-layer “Trust Boundary.”
1. Local Only (local)¶
Default mode. The port is open to all network interfaces, but any request from a non-loopback address is intercepted (returns 403).
* Characteristics: Visible to local network port scans; TCP handshake completes, but authentication fails.
* Note: The documentation contains a contradiction regarding this mode (describing it as “hot-swappable” in one section but requiring a restart in “Known Limitations”). Please refer to the actual behavior on the settings page.
2. Tailscale Only (tailscale)¶
Only allows requests from Tailscale tailnet addresses.
* Characteristics: Automatically detects the tailnet address. If detection fails, the plugin falls back to “Off” mode and logs the reason; it does not silently relax to local network access.
3. All Local Networks (all)¶
Allows access from all IPv4 devices within the local network.
* Characteristics: The address is sampled per request, but the binding address does not move with network switches.
4. Off (off)¶
Retracts the listening address to loopback (127.0.0.1).
* Characteristics: The port is invisible to the local network; requires a restart to take effect.
Use Cases and Precautions¶
- Use Cases: Accessing the GUI via Tailscale on a mobile phone, opening access to other devices on the local network, or completely disabling remote access.
- Limitations: The plugin supports IPv4 only and does not detect IPv6 segments. The GUI itself uses HTTP and does not provide TLS encryption; traffic security relies on Tailscale or the local network’s inherent security mechanisms.
- Dependencies: Requires Node.js engine version
^22.19.0 || >=24.0.0.
Summary¶
dsh-net-access solves the balance between flexibility and security in DSH’s default configuration through an application-layer trust boundary mechanism. It allows for dynamic adjustment of access policies without restarting the process (except for Off mode), making it suitable for DSH users who require fine-grained control over web access scope.