Skip to content

Instantly share code, notes, and snippets.

@suchow
Created April 28, 2014 01:10
Show Gist options
  • Save suchow/11359455 to your computer and use it in GitHub Desktop.
Save suchow/11359455 to your computer and use it in GitHub Desktop.
❯ sudo ipfw -f flush
Flushed all rules.
~
❯ sudo ipfw add allow tcp from me to 54.209.68.168
00100 allow tcp from me to 54.209.68.168
~
❯ sudo ipfw add deny tcp from any to any
00200 deny tcp from any to any
~
❯ ping api.moves-app.com
PING api.moves-app.com (54.209.68.168): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
^C
--- api.moves-app.com ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment