Skip to content

Instantly share code, notes, and snippets.

@mwhooker
Created October 22, 2013 20:40
Show Gist options
  • Select an option

  • Save mwhooker/7107717 to your computer and use it in GitHub Desktop.

Select an option

Save mwhooker/7107717 to your computer and use it in GitHub Desktop.
function breakvpn() {
gw=`netstat -arn | grep "^default" | awk '{print $2}'`
while [[ "$#" -gt "0" ]]; do
sudo route delete $1
sudo route add $1 $gw
shift
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment