Skip to content

Instantly share code, notes, and snippets.

View drothmaler's full-sized avatar

Daniel Rothmaler drothmaler

  • Dresden, Germany
View GitHub Profile
@Remiii
Remiii / README.md
Created August 19, 2015 15:31
Mac pfctl Port Forwarding for your VM/Docker

Mac pfctl Port Forwarding for your VM/Docker

Add rules

$ cat /etc/pf.anchors/remiii.forwarding
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 10080
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 443 -> 127.0.0.1 port 10443

Enable rules