-
-
Save jiverson/ce947d2353a6f10e5de4 to your computer and use it in GitHub Desktop.
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
| #Requests from outside | |
| iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000 | |
| iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 3443 | |
| #Requests from localhost | |
| iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 3000 | |
| iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 443 -j REDIRECT --to-ports 3443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment