Hi,
The sshuttle
tool actually uploads its Python source code to the server, executes it there, and uses that instead of SSH's tunneling. So, basically, it's not really an SSH VPN, it's a proprietary VPN that runs over SSH session. At also uses iptables REDIRECT
rules to capture outgoing TCP sessions. These clever hacks make it a useful tool.
But unfortunately, this also means that reproducing sshuttle
using SSH alone is not possible - not with Rebex, not with OpenSSH.
The closest you can get is to set up a SOCKS5 server that tunnels its connections through an SSH server. This eliminates the need to setup one tunnel per port, but it also requires each client app to support connecting via a SOCKS5 server and be configured to use it. To work around that, you would need something like sshuttle
that operates via a SOCKS5 server. Unfortunately, we are not aware of any such tool, and we have no plans to implement it.