-
-
Save debashisbarman/7892a3b76a42a64f30cfa19f7d56c5b0 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 |
I think you mean
sudo iptables -t nat -L
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 # 8080 -> 8080
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To remove