Created
December 3, 2014 11:14
-
-
Save zouzias/ab5d3b0881645e7e8ec7 to your computer and use it in GitHub Desktop.
Redirect ports 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
# Re-directs port 80 to 5601 | |
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5601 | |
# Apply | |
sudo service iptables restart | |
# Ubuntu | |
sudo iptables-save && sudo iptables-apply |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment