Skip to content

Instantly share code, notes, and snippets.

@iUsmanN
Forked from debashisbarman/forwardport.sh
Created March 23, 2023 23:23
Show Gist options
  • Save iUsmanN/dde3465c1c3b8af726fc714debdc4360 to your computer and use it in GitHub Desktop.
Save iUsmanN/dde3465c1c3b8af726fc714debdc4360 to your computer and use it in GitHub Desktop.
Forward port 80 to 8080 on EC2 instance.
sudo iptables -t nat -L
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
@iUsmanN
Copy link
Author

iUsmanN commented Mar 23, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment