Skip to content

Instantly share code, notes, and snippets.

@tkaemming
Created November 3, 2011 17:57
Show Gist options
  • Save tkaemming/1337204 to your computer and use it in GitHub Desktop.
Save tkaemming/1337204 to your computer and use it in GitHub Desktop.
use iptables to proxy tcp traffic on port 80 to 8080. helpful to simulate a web machine being behind an ELB without changing configuration or having to spool up another vm/start another nginx instance
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment