Created
November 3, 2011 17:57
-
-
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
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
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