sshuttle
$ sshuttle Community High Risksshuttle 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.
brew install sshuttle Alters host OS firewall NAT rules (pf/iptables) to transparently route subnets over SSH; MCP servers cannot configure kernel packet redirection.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean CLI flags, but commonly prompts interactively for sudo and SSH passphrases, runs as a blocking tunnel, and emits plain-text stderr logs.
- Requires
sudofor local firewall rule injection - Blocking foreground/daemon tunnel with no JSON output
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/0routes all TCP traffic over SSH
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)
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
Long-standing community project (sshuttle/sshuttle) under LGPL-2.1.
- Maintained at
sshuttle/sshuttle
Good ReadTheDocs manual covering pf, iptables, nftables, and DNS modes.
- Official manual at sshuttle.readthedocs.io
Security, Auth & Guardrails
Delegates authentication to OpenSSH (~/.ssh/config, SSH keys, and ssh-agent); locally invokes sudo for firewall NAT rules.
Free, LGPL-2.1 open-source Python CLI.
# 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
sshuttle --version && sshuttle --help
Prints version and CLI options (--dns, -x, --method, -N) without touching firewall rules.
Controlled Writes & Previews
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
--dnsforwarding and-xsubnet exclusions.
Caveats & Pitfalls
- ! Modifies local firewall rules using
sudoand does not support native Windows. - ! Interactive
sudo/SSH prompts can stall headless agents unlessssh-agentandsudoare preconfigured.