-
-
Save antonga23/62750dc35bf3fbc0017428105011bf3c to your computer and use it in GitHub Desktop.
Forward port 80 to 8080 on EC2 instance.
This file contains 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 -t nat -L | |
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment