Created
July 22, 2015 19:43
-
-
Save jheth/87e1e3e8f80e04da7f0a to your computer and use it in GitHub Desktop.
Port Mapping on Gentoo
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 /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080 | |
sudo /etc/init.d/iptables save | |
sudo /etc/init.d/iptables start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment