sshuttle

On-the-fly VPN over :ssh
web | docs | code | LGPL2.1+?

See also | :openvpn :ssh

Notes

Single connection
To create a single virtual connection, specify an IP address without an subnet mask or with a mask of /32. These are equivalent:

sshuttle -r user@host:port ip
sshuttle -r user@host:port ip/32

Reference: https://sshuttle.readthedocs.io/en/stable/manpage.html#cmdoption-sshuttle-arg-subnets

Manage multiple sshuttle connections with sshoot
https://pypi.python.org/pypi/sshoot
https://github.com/albertodonato/sshoot

sshoot create -r user@host:port name ip
sshoot start name
sshoot stop name

Mapping hosts to IP address

ip <tab> name
# values from sshoot create command, for example
# 10.0.0.1 <tab> test_server

sshoot start name
ssh -p PORT user@name


Backlinks: openvpn

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "sshuttle in Grasmere notebook, including code snippets" (why? how?)