This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
Target iptables rules for external requests #108
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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*
andwlan*
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