Created
August 27, 2018 13:38
-
-
Save freebeans/d923d44d2303fa78c64302c763bf629e to your computer and use it in GitHub Desktop.
Re-route incoming requests on port 80 to port 8080 (or any other)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment