Mastodon

VPNwatcher for OS X

V

Swap out “Transmission” for your own VPN-sensitive client, obvs. Assumes Viscosity or another client that creates a tun0 interface.

while [ 1 ]; do if [ -z "`ifconfig | grep tun0`" ]; then ps ax | grep -i Transmission | grep -v grep | awk '{print $1}' | xargs kill; echo "killed process at `date`"; exit 1; fi; sleep 1; done

About the author

Tom Lee
By Tom Lee