Skip to content

Instantly share code, notes, and snippets.

@DerPauli
Created September 15, 2019 13:05
Show Gist options
  • Save DerPauli/623729c309e33d46069f1996f6044626 to your computer and use it in GitHub Desktop.
Save DerPauli/623729c309e33d46069f1996f6044626 to your computer and use it in GitHub Desktop.
Reroute port 80 to 3000
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