Skip to content

Instantly share code, notes, and snippets.

View lookis's full-sized avatar

Jingsi lookis

  • 快手
  • BeiJing
  • 08:32 (UTC +08:00)
View GitHub Profile
@lookis
lookis / setup.md
Created January 17, 2018 09:52 — forked from novemberborn/setup.md
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443