Last active
June 23, 2018 04:49
-
-
Save ly0/9485a5432d8be13c6a36421487999d8c to your computer and use it in GitHub Desktop.
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 iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8080 | |
sudo iptables -A PREROUTING -t nat -p tcp --dport 443 -j REDIRECT --to-port 8443 | |
sudo sh -c "iptables-save > /etc/iptables.rules" | |
sudo apt-get install iptables-persistent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment