Sshuttle

From RCATs

Description

Sshuttle[1] is a free, open-source software tool that allows you to securely access network resources behind a firewall or router, by creating a VPN (Virtual Private Network) connection over an existing SSH (Secure Shell) connection. sshuttle works by forwarding all network traffic from your local machine to the remote network via an encrypted SSH tunnel, effectively bypassing any firewalls or network restrictions. This makes it useful for securely accessing remote resources from untrusted or public networks, or for creating secure connections to remote networks without the need for additional VPN software. sshuttle is designed to be simple and easy to use, and does not require any complicated setup or configuration.

Commands[2]

Forward All Traffic

sshuttle -r username@sshserver 0.0.0.0/0

# Shortcut for 0.0.0.0/0
sshuttle -r username@sshserver 0/0

Connection to Remote Host

# This command removes the need for proxychains to connect to remote host
# -r remote host to connect to using ubuntu account
# 172.16.5.0/23 is the subnet to be routed over the VPN Connection
sudo sshuttle -r ubuntu@10.129.202.64 172.16.5.0/23 -v

References