Skip to content

Instantly share code, notes, and snippets.

@JoshuaEstes
Created October 29, 2015 01:48
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 JoshuaEstes/e5c88f2b6e3c23789df2 to your computer and use it in GitHub Desktop.
Save JoshuaEstes/e5c88f2b6e3c23789df2 to your computer and use it in GitHub Desktop.
echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
" | sudo pfctl -ef -
sudo pfctl -F all -f /etc/pf.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment