Skip to content

Instantly share code, notes, and snippets.

@chrsgrffth
Created August 18, 2014 02:59
Show Gist options
  • Save chrsgrffth/c2b33896138aa1894cfd to your computer and use it in GitHub Desktop.
Save chrsgrffth/c2b33896138aa1894cfd to your computer and use it in GitHub Desktop.
Forward Port 80 to 3000 for Node.js (from StackOverflow)
sudo 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