Add sshuttle proxy alias function

This commit is contained in:
Kris Lamoureux 2020-03-27 20:22:12 -04:00
parent 368fffb86c
commit ad3d77bd27
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -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