Skip to content

Instantly share code, notes, and snippets.

@transcranial
Created December 21, 2015 00:56
Show Gist options
  • Save transcranial/dbbaf9cf370ea7eff9f6 to your computer and use it in GitHub Desktop.
Save transcranial/dbbaf9cf370ea7eff9f6 to your computer and use it in GitHub Desktop.
redirecting ports to 80/443
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
# also add above minus sudo to /etc/rc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment