Skip to content

Instantly share code, notes, and snippets.

@Bostonncity
Forked from wizact/forwardport.sh
Created December 20, 2015 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Bostonncity/f71a5589f321c8e062c2 to your computer and use it in GitHub Desktop.
Save Bostonncity/f71a5589f321c8e062c2 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment