Created
July 21, 2016 22:47
-
-
Save johnthethird/d13c547b7feca044a8192cf70e7933ef to your computer and use it in GitHub Desktop.
Forward port 80 to a local Rails app on port 3000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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