Forward all IPv4 TCP traffic via a remote SSH server

sshuttle

  • Transparent proxy server that tunnels traffic over an SSH connection.
    Doesn't require root or any special setup on the remote SSH server, though root access on the local machine is prompted for.
    More information: <https://manned.org/sshuttle>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}

click the source code to copy install sshuttle on any operating system with command-not-found.com