Skip to content

Instantly share code, notes, and snippets.

@baniol
Created February 24, 2015 12:23
Show Gist options
  • Save baniol/59335f2db75bbb084e8f to your computer and use it in GitHub Desktop.
Save baniol/59335f2db75bbb084e8f to your computer and use it in GitHub Desktop.
Block / alow ports on mac osx
alias blockport="sudo ipfw add 1 deny tcp from any to any 8084"
alias allowport="sudo ipfw del 1 deny tcp from any to any 8084"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment