Skip to content

Instantly share code, notes, and snippets.

@LucasFrecia
Forked from zeuxisoo/gist:3843678
Created February 16, 2020 20:09
Show Gist options
  • Save LucasFrecia/23169c8a62f9efaecddd8b63dae70e65 to your computer and use it in GitHub Desktop.
Save LucasFrecia/23169c8a62f9efaecddd8b63dae70e65 to your computer and use it in GitHub Desktop.
Reroute port 80 to 3000 on iptables
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000
sudo iptables-save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment