Created
October 31, 2013 21:42
-
-
Save rgbkrk/7257691 to your computer and use it in GitHub Desktop.
Forward a port to port 80 using iptables
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 PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000 | |
iptables-save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment