Created
October 2, 2014 12:08
-
-
Save tedslittlerobot/676748a8650e911a736d to your computer and use it in GitHub Desktop.
To setup Port Forwarding for Vagrant on OSX
This file contains 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
st /etc/pf.conf | |
add | |
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8000 | |
after the last `rdr-anchor` (the last of the translation rules) | |
run | |
sudo pfctl -evf /etc/pf.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment