Created
July 11, 2013 19:44
-
-
Save lancevo/5978591 to your computer and use it in GitHub Desktop.
iptables: redirect port shell script on *nix. Ex: redirect port 80 to 3000
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
sudo iptables -t nat -A PREROUTING -p tcp -port 80 -j REDIRECT --to-ports 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment