Skip to content

Instantly share code, notes, and snippets.

@kanatzidis
Created October 14, 2017 12:20
Show Gist options
  • Save kanatzidis/e32ad52e38b0d9def6c2c0faa4d63db9 to your computer and use it in GitHub Desktop.
Save kanatzidis/e32ad52e38b0d9def6c2c0faa4d63db9 to your computer and use it in GitHub Desktop.
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
Also put this (without sudo) in /etc/rc.local to run on reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment