Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created May 29, 2015 08:09
Show Gist options
  • Select an option

  • Save dannycroft/b59fbe457aa866b3160c to your computer and use it in GitHub Desktop.

Select an option

Save dannycroft/b59fbe457aa866b3160c to your computer and use it in GitHub Desktop.
Forward traffic on port 80 to 3000
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment