Skip to content

Instantly share code, notes, and snippets.

@morsdyce
Created May 7, 2015 11:10
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 morsdyce/b5149a54ae8e9bcadfa2 to your computer and use it in GitHub Desktop.
Save morsdyce/b5149a54ae8e9bcadfa2 to your computer and use it in GitHub Desktop.
forward port on OSX yosemite #osx #firewall #forwarding
echo "
rdr pass inet proto tcp from any to any port 25 -> 127.0.0.1 port 1025
" | sudo pfctl -ef -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment