Tunnel operations
Commands and contracts for tunnel. Place global flags before the command. Examples use placeholders and do not grant approval.
| Operation | Availability | Purpose |
|---|---|---|
tunnel.check | supported | Passively check the destination greeting |
tunnel.create | supported | Create a local or reverse forward on an existing connection |
tunnel.list | supported | List retained forwards and exact qualified IDs |
tunnel.proxy-create | supported | Create connection-owned SOCKS4/5 |
tunnel.proxy-inspect | supported | Inspect SOCKS endpoint and owner identity |
tunnel.proxy-remove | supported | Remove SOCKS only |
tunnel.remove | supported | Remove exactly one listener |
tunnel.check
Passively check the destination greeting
supported
Invocation
burrow --workspace PATH tunnel check CONNECTION/IDExample
burrow --workspace /absolute/workspace tunnel check target/0123456789abcdef0123456789abcdefParameters
tunnel-id·string- Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Attempts traffic through the existing listener; no remote bytes retained. Silent protocols need their own client to prove reachability.
Returns
TunnelCheck. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: tunnel check CONNECTION/ID |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/forward.gosemantic-check: core/cmd/burrow/forward_lab.py |
tunnel.create
Create a local or reverse forward on an existing connection
supported
Invocation
burrow --workspace PATH tunnel create CONNECTION forward|reverse LISTEN HOST PORT [--review HASH] [--yes]Example
burrow --workspace /absolute/workspace tunnel create target forward 8080 127.0.0.1 80Parameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
direction·"forward" | "reverse"- tunc aliases use l/r.
Allowed:
forward,reverse listen·string- PORT defaults to 127.0.0.1, or explicit IP:PORT ([IPv6]:PORT). Reverse only: 0 chooses 49152–65535 with at most 8 attempts.
host·string- SSH host/alias for connection calls; destination hostname or literal IP for tunnel calls.
port·integerMinimum:
1· Maximum:65535review·string- --review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false
Approval and effects
CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.
After approval binds a listener; explicit broad IP binds expose it. Reverse LISTEN 0 requests a random high port; returns actual endpoint.
Returns
TunnelReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: tunnel create CONNECTION forward|reverse LISTEN HOST PORT [--review HASH] [--yes] |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/forward.gosemantic-check: core/cmd/burrow/forward_lab.py |
tunnel.list
List retained forwards and exact qualified IDs
supported
Invocation
burrow --workspace PATH tunnel listExample
burrow --workspace /absolute/workspace tunnel listParameters
No operation-specific parameters.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.
Returns
Tunnels. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: tunnel list |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/forward.gosemantic-check: core/cmd/burrow/forward_lab.py |
tunnel.proxy-create
Create connection-owned SOCKS4/5
supported
Invocation
burrow --workspace PATH proxy create CONNECTION LISTEN [--review HASH] [--yes]Example
burrow --workspace /absolute/workspace proxy create target 1080Parameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
listen·string- PORT defaults to 127.0.0.1, or explicit IP:PORT ([IPv6]:PORT). Reverse only: 0 chooses 49152–65535 with at most 8 attempts.
review·string- --review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false
Approval and effects
CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.
Binds an unauthenticated SOCKS listener; one per connection, separate from L/R IDs and counts.
Returns
ProxyReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: proxy create CONNECTION LISTEN [--review HASH] [--yes] |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/proxy.gosemantic-check: core/cmd/burrow/connection_lab.py |
tunnel.proxy-inspect
Inspect SOCKS endpoint and owner identity
supported
Invocation
burrow --workspace PATH proxy inspect CONNECTIONExample
burrow --workspace /absolute/workspace proxy inspect targetParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.
Returns
Proxy. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: proxy inspect CONNECTION |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/proxy.gosemantic-check: core/cmd/burrow/connection_lab.py |
tunnel.proxy-remove
Remove SOCKS only
supported
Invocation
burrow --workspace PATH proxy remove CONNECTION [--review HASH] [--yes]Example
burrow --workspace /absolute/workspace proxy remove targetParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
review·string- --review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false
Approval and effects
CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.
Removes SOCKS while preserving the master and L/R forwards.
Returns
ProxyReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: proxy remove CONNECTION [--review HASH] [--yes] |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/proxy.gosemantic-check: core/cmd/burrow/connection_lab.py |
tunnel.remove
Remove exactly one listener
supported
Invocation
burrow --workspace PATH tunnel remove CONNECTION/ID [--yes]Example
burrow --workspace /absolute/workspace tunnel remove target/0123456789abcdef0123456789abcdefParameters
tunnel-id·string- Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.
yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false
Approval and effects
Review then --yes. No --review flag; the exact qualified ID selects the listener.
Stops new connections on that listener; accepted streams may finish; siblings survive.
Returns
TunnelReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Burrow management: tunnel remove CONNECTION/ID [--yes] |
| Scope | Explicit workspace; resource names and IDs are workspace-local. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/forward.gosemantic-check: core/cmd/burrow/forward_lab.py |