Created
December 21, 2015 00:56
-
-
Save transcranial/dbbaf9cf370ea7eff9f6 to your computer and use it in GitHub Desktop.
redirecting ports to 80/443
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 -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 | |
# also add above minus sudo to /etc/rc.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment