comparison .bash_aliases @ 175:76f201ff5abc

Start of changing proxying, possibly more to come later
author Steve Huston <huston@astro.princeton.edu>
date Mon, 23 Dec 2019 11:21:19 -0500
parents 9fed6f4301db
children ce4f783c13d8
comparison
equal deleted inserted replaced
174:43379ace60cc 175:76f201ff5abc
82 fi 82 fi
83 } 83 }
84 84
85 # Proxying/tunneling - predominantly for my Mac laptop 85 # Proxying/tunneling - predominantly for my Mac laptop
86 proxy() { 86 proxy() {
87 PROXY_HOST=csesbh.princeton.edu 87 PROXY_HOST=${PROXY_HOST:-csesbh.princeton.edu}
88 PROXY_PORT=8888 88 PROXY_PORT=${PROXY_PORT:-8888}
89 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15' 89 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15'
90 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ 90 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
91 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \ 91 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \
92 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \ 92 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
93 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" & 93 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" &