Created
December 19, 2016 17:08
-
-
Save johnrnelson/fe99dda745d20d6a3b094a696d8729c2 to your computer and use it in GitHub Desktop.
Example of how to Setup up IP Tables for port 443-8080 and 80-8000
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
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080 | |
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment