Skip to content

Instantly share code, notes, and snippets.

@tedslittlerobot
Created October 2, 2014 12:08
Show Gist options
  • Save tedslittlerobot/676748a8650e911a736d to your computer and use it in GitHub Desktop.
Save tedslittlerobot/676748a8650e911a736d to your computer and use it in GitHub Desktop.
To setup Port Forwarding for Vagrant on OSX
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