Created
July 7, 2016 16:37
-
-
Save wrannaman/185ed1d62c2fab7db9c91452b4e28865 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 -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8001 | |
- sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to 8000 | |
- sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8001 | |
- sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To delete
sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to 1337
sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to 8888