How to forward port 80 to 8080 in os x mavericks
Asked Answered
I

1

11

I installed Mac OS X Mavericks (10.9), and I'm using Jetty to publish a web app. I type

sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in

(my hosts file has 127.0.0.1 abc.com)

but Safari can't connect to abc.com. It worked in OS X 10.8 though. Why?

Immunotherapy answered 29/10, 2013 at 2:46 Comment(1)
According to Apple ipfw was depreciated as of Mountain Lion (10.8). pf should be used instead.Kenn
A
17

ipfw has been deprecated since Mountain Lion but was not removed until Mavericks. It's now using the ported pf exclusively.

I wrote a quick guide to configure and setup pf for port forwarding in Mavericks.

Arnst answered 29/10, 2013 at 5:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.