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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top