Created
May 14, 2011 11:40
-
-
Save ahk/972137 to your computer and use it in GitHub Desktop.
redirect traffic on port 80 to port 8080 with iptables
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
# redirect traffic on port 80 to port 8080 with iptables | |
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment