Skip to content

Instantly share code, notes, and snippets.

Alex Wolkov altryne

View GitHub Profile
View pro-decentralization-link-list.md
@altryne
altryne / vagrant-port-forwarding.md
Last active May 30, 2016 — forked from carlossless/jenkins-port-forwarding.md
Vagrant port fowarding with Yosemite/Mavericks
View vagrant-port-forwarding.md

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.