Created
March 16, 2013 00:19
-
-
Save fernyb/5174248 to your computer and use it in GitHub Desktop.
redirect port
This file contains hidden or 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 -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT | |
--iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT | |
--iptables -A PREROUTING -t nat -i eth0 -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