Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

sshuttle

$ sshuttle Community High Risk
sshuttle · Browser & Web · LGPL-2.1 · macos / linux

sshuttle forwards entire IPv4/IPv6 CIDR subnets and DNS queries (--dns) through any standard SSH login (sshuttle -r user@host 10.0.0.0/8 --dns) without requiring root or special software on the remote server. Locally requires sudo to configure pf, iptables, or nftables transparent firewall rules.

FCRS-1.0 Score
67 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install sshuttle
CLI vs MCP Decision CLI Only

Alters host OS firewall NAT rules (pf/iptables) to transparently route subnets over SSH; MCP servers cannot configure kernel packet redirection.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Clean CLI flags, but commonly prompts interactively for sudo and SSH passphrases, runs as a blocking tunnel, and emits plain-text stderr logs.

  • Requires sudo for local firewall rule injection
  • Blocking foreground/daemon tunnel with no JSON output
Trust & Safety 13 / 25

Modifies host firewall (pf/iptables/nftables) tables as root; routing 0/0 hijacks all host TCP/DNS traffic if not narrowly scoped with CIDRs and -x.

  • Mutates local OS firewall NAT rules under sudo
  • Broad 0/0 routes all TCP traffic over SSH
Setup & Portability 11 / 15

Requires Python + OpenSSH on macOS, Linux, or BSD (brew or pip); no native Windows support.

  • macOS and Linux only (brew install sshuttle / pip install sshuttle)
Utility & Efficiency 13 / 15

Solves transparent subnet and DNS access through any SSH bastion without server-side root or VPN daemons.

  • Zero server-side installation beyond standard SSH and Python
Maintenance & Lineage 8 / 10

Long-standing community project (sshuttle/sshuttle) under LGPL-2.1.

  • Maintained at sshuttle/sshuttle
Docs & Verifiability 8 / 10

Good ReadTheDocs manual covering pf, iptables, nftables, and DNS modes.

  • Official manual at sshuttle.readthedocs.io

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Delegates authentication to OpenSSH (~/.ssh/config, SSH keys, and ssh-agent); locally invokes sudo for firewall NAT rules.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, LGPL-2.1 open-source Python CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# sshuttle Agent Rules
- Never run `sshuttle ... 0/0` unattended; scope to minimal target CIDRs and exclude local subnets with `-x`.
- Expect local `sudo` elevation for `pf`/`iptables` rules and ensure the process exits cleanly so firewall rules are restored.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check sshuttle version and available options
sshuttle --version && sshuttle --help

Prints version and CLI options (--dns, -x, --method, -N) without touching firewall rules.

Controlled Writes & Previews

Forward a private corporate subnet over SSH
sshuttle -r jumpbox 10.20.0.0/16 -x 10.20.1.0/24 --dns

Routes 10.20.0.0/16 and DNS through jumpbox while excluding 10.20.1.0/24 via -x.

Strengths for Agents

  • + Needs only standard SSH and Python on the remote bastion—no VPN server setup.
  • + Supports --dns forwarding and -x subnet exclusions.

Caveats & Pitfalls

  • ! Modifies local firewall rules using sudo and does not support native Windows.
  • ! Interactive sudo/SSH prompts can stall headless agents unless ssh-agent and sudo are preconfigured.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI