Skip to content

Instantly share code, notes, and snippets.

@marzocchi
Created December 19, 2016 06:21
Show Gist options
  • Save marzocchi/6c21469e32246a76df51bcc7abc425a4 to your computer and use it in GitHub Desktop.
Save marzocchi/6c21469e32246a76df51bcc7abc425a4 to your computer and use it in GitHub Desktop.
Map local port 80 to 8080
echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
" | sudo pfctl -ef -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment