Skip to content

Instantly share code, notes, and snippets.

Alex Wolkov altryne

View GitHub Profile
altryne /
Last active May 30, 2016 — forked from carlossless/
Vagrant port fowarding with Yosemite/Mavericks

Vagrant Port Forwarding (8080 -> 80, 8443 -> 443) with pf on Mavericks/Yosemite/El-Cap

This guide is a fork from this gist.

Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

1. Create the anchor file

Create an anchor file under /etc/pf.anchors/com.vagrant with your redirection rule like:
important note the trailing whitespace is nessesary

You can’t perform that action at this time.