Add sshuttle proxy alias function
This commit is contained in:
parent
368fffb86c
commit
ad3d77bd27
@ -67,6 +67,12 @@ alias 'day'='redshift -x'
|
|||||||
# SOCKS proxy over SSH
|
# SOCKS proxy over SSH
|
||||||
alias 'socks'='screen -dm ssh -D 1337 -q -C -N'
|
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
|
if [ -f ~/.other_aliases ]; then
|
||||||
source ~/.other_aliases
|
source ~/.other_aliases
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user