diff --git a/.bash_aliases b/.bash_aliases index 5678726..258cba8 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -67,6 +67,12 @@ alias 'day'='redshift -x' # SOCKS proxy over SSH alias 'socks'='screen -dm ssh -D 1337 -q -C -N' +# sshuttle proxy +#e.g. alias 'proxyhome'='proxy user hostdomain:22 192.168.1.0/24' +function proxy() { + screen -dm sshuttle -v -r $1@$2 -x $2 ${@:2}; screen -r; +} + if [ -f ~/.other_aliases ]; then source ~/.other_aliases fi