Skip to content

Instantly share code, notes, and snippets.

@jimkang
Created September 20, 2013 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimkang/6632241 to your computer and use it in GitHub Desktop.
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.)
#!/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