Created
September 20, 2013 01:36
-
-
Save jimkang/6632241 to your computer and use it in GitHub Desktop.
For future reference: Setting up port forwarding on boot. (Symlink this from /etc/init.d/ to /etc/rc2.d/S98setup-port-forwarding.)
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
#!/bin/sh | |
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment