ysbaddaden / prax

Rack proxy server for development
http://ysbaddaden.github.io/prax/
Other
475 stars 49 forks source link

Target iptables rules for external requests #108

Closed ysbaddaden closed 9 years ago

ysbaddaden commented 9 years ago

The PREROUTING rules aren't behaving properly since Ubuntu 14.04 and some users have routing problems with Docker.

These rules are meant to redirect the external requests from ports 80 and 443 to ports 20559 and 20558 since Prax runs with user privileges it can't listen on these ports, and it's cumbersome to handle manual ports in URL —for the developer and sometimes in the application's code too.

I changed the existing rules to target the eth* and wlan* devices specifically, instead of prerouting everything. Let me know if you encounter any problem (or not) with these new rules.

Relates to #87 and #102

mbarrin commented 9 years ago

I can have prax and docker working at the same time now.

Thanks!

ysbaddaden commented 9 years ago

Cool! Let's merge.