Created
April 20, 2017 11:34
-
-
Save JensVerneuer/e9ec4b6b666767d3771bb09a2ae9a98e to your computer and use it in GitHub Desktop.
reroute port 9000 to 80 using 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
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 9000 | |
iptables-save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment