Skip to content

Instantly share code, notes, and snippets.

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 XerxesNoble/d2fa36d9b54cc667c2ae90d84f3cb9cc to your computer and use it in GitHub Desktop.
Save XerxesNoble/d2fa36d9b54cc667c2ae90d84f3cb9cc 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