Skip to content

Instantly share code, notes, and snippets.

@pzaich
Created July 12, 2016 03:56
Show Gist options
  • Save pzaich/1a6a01146312102729c942763186e697 to your computer and use it in GitHub Desktop.
Save pzaich/1a6a01146312102729c942763186e697 to your computer and use it in GitHub Desktop.
Forward port 80 to 3000 using pfctl
echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 3000
" | sudo pfctl -ef -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment