Do-Sshuttle: Transparent Proxying via DigitalOcean Droplets
github.com
github.com
# ~/.ssh/config
Host bastion
User user
Port 2222
Hostname my.host.com
And then as a bash alias in `.bashrc`: # ~/.bashrc
alias stun='sshuttle --dns --daemon --pidfile=/tmp/sshuttle.pid -r bastion 0/0'
alias stunx='[[ -f /tmp/sshuttle.pid ]] && kill $(cat /tmp/sshuttle.pid)'
Works on OSX and Linux.I've seen this sort of thing be helpful when the software is cumbersome to install and/or use. But, looking at the sshuttle docs, it doesn't look terribly complicated.
I've not used sshuttle myself, so maybe I'm missing something? Is it difficult to install or use? Honestly curious what problem this shell script is addressing.
A readme that describes only how to install a project, or the commands to type, is not sufficient. Every readme should start with a description of what the thing does, and why doing it this way is better.
Why and how do you use sshutle? The doc-page for shuttle claims it's smarter than port forwarding - and I guess that might be true for some subset of protocols that isn't quite real-time (builds on udp), but yet isn't something simple like http?
sshuttle -r <hostname> 0/0