Mac Port forwarding OS X 10.10.3 (14d136)

Source: Internet
Author: User
Tags pow

Unfortunately, Yosemite breaks POW because IPFW have been completely removed from the OS. I was able-get POW working again using PF, which is the new recommended-by-doing port forwarding in OS x. Here's what I do to get it working:

First, add an anchor file to contain the POW port forwarding rule. Place the following code In/etc/pf.anchors/com.pow:

rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 20559

Note:the trailing line break is required. Otherwise PF would say you has a syntax error.

Next, add the lines to/etc/pf.conf to load your new rule. It is important where these lines go. Add this line right after rdr-anchor "com.apple/*" :

rdr-anchor "pow"

Add this line directly after load anchor "com.apple" from "/etc/pf.anchors/com.apple" :

load anchor "pow" from "/etc/pf.anchors/com.pow"

Again, make sure-maintain the final line break.

Next, reload the rules into PF by runningsudo pfctl -f /etc/pf.conf

Finally, enable PF by runningsudo pfctl -e

Interested to hear how other people fare with this. I would provide a pull request but I'm not familiar with the internals of POW or the the-the-the-the-should be implemented.

Mac Port forwarding OS X 10.10.3 (14d136) (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.