Skip to content

Instantly share code, notes, and snippets.

@simonwmeng
Created May 16, 2018 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonwmeng/076033b265ac32660ac3a5aad91db837 to your computer and use it in GitHub Desktop.
Save simonwmeng/076033b265ac32660ac3a5aad91db837 to your computer and use it in GitHub Desktop.
Flushes the DNS routing table for whenever Tunnelblick gets trapped in a TCP connection loop.
#!/usr/bin/env bash
# Flushes the DNS routing table for whenever Tunnelblick gets trapped in a TCP
# connection loop.
sudo ifconfig en0 down
sleep 5
sudo route -n flush
sleep 5
sudo ifconfig en0 up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment