#!/bin/bash
tempdir=$(mktemp -d)
ssh -v -D 9050 -q -C -N kad.sh &
google-chrome --user-data-dir="$tempdir" --incognito --proxy-server=socks://127.0.0.1:9050 whatismyip.com
rm -rfv "$tempdir"
echo "killing tunnel pid $(lsof -ti :9050)"
kill "$( lsof -ti :9050 )"