Skip to content

Instantly share code, notes, and snippets.

@juniorbird
Created August 8, 2016 21:20
Show Gist options
  • Save juniorbird/f0f9a96778e5a2c94ff7738e1a065a68 to your computer and use it in GitHub Desktop.
Save juniorbird/f0f9a96778e5a2c94ff7738e1a065a68 to your computer and use it in GitHub Desktop.
Forward Mac OS >= 10.10.x 8080 to 80
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 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment