Skip to content

Instantly share code, notes, and snippets.

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 johnthethird/d13c547b7feca044a8192cf70e7933ef to your computer and use it in GitHub Desktop.
Save johnthethird/d13c547b7feca044a8192cf70e7933ef to your computer and use it in GitHub Desktop.
Forward port 80 to a local Rails app on port 3000
echo "rdr pass proto tcp from any to any port {80,3000} -> 127.0.0.1 port 3000" | sudo pfctl -a "com.apple/250.ApplicationFirewall" -Ef -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment