Standard application-level SOCKS or HTTP proxy settings in Linux desktop environments (GNOME/KDE) frequently fail for stubborn proprietary applications (such as TeamViewer, VoIP tools, or CLI utilities) that ignore desktop proxy environment variables. sshuttle acts as a transparent, poor-man's VPN over standard SSH, routing all TCP traffic (and optionally DNS queries) without requiring root administrator privileges or TUN/TAP kernel modules on the remote host.
1. Installation
# On Ubuntu / Debian:
sudo apt-get install sshuttle -y
# On macOS (Homebrew):
brew install sshuttle
# Or via Python pip:
sudo pip install sshuttle
2. Routing Global Traffic
To forward all client internet traffic (excluding your local LAN subnets) through your remote SSH server:
# Transparently route all default IPv4 subnets and DNS:
sshuttle --dns -r username@remote-server-ip:22 0/0 -x 192.168.0.0/16 -x 10.0.0.0/8
Every running program on your workstation—including apps with broken native proxy settings—will instantly route traffic through the encrypted SSH tunnel.
No comments:
Post a Comment