Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfw was removed in 10.10 #8

Open
TimothyFitz opened this issue Nov 23, 2015 · 0 comments
Open

ipfw was removed in 10.10 #8

TimothyFitz opened this issue Nov 23, 2015 · 0 comments

Comments

@TimothyFitz
Copy link
Contributor

The step where you download and install canvas_forward_http.tgz is broken as of OS X 10.10. That download is a WaterRoof-based installer for ipfw rules. The rules are:

add 01000 fwd 127.0.0.1,9000 ip from any to me dst-port 80
add 01100 fwd 127.0.0.1,9001 ip from any to me dst-port 443
add 01200 deny ip from any to me dst-port 9000
add 01300 deny ip from any to me dst-port 9001
add 65535 allow ip from any to any

Or in english: redirect all port 80 traffic to localhost:9000 and all port 443 traffic to localhost:9001. This lets the server run as your user instead of needing to start as root and drop privs. In production it just ran HTTP on port 9000, and HTTPS was terminated at the Amazon ELB layer.

Is 10.10+ the correct solution is to use pf. Something similar to this: basecamp/pow#452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant