Skip to content

Instantly share code, notes, and snippets.

@lancevo
Created July 11, 2013 19:44
Show Gist options
  • Save lancevo/5978591 to your computer and use it in GitHub Desktop.
Save lancevo/5978591 to your computer and use it in GitHub Desktop.
iptables: redirect port shell script on *nix. Ex: redirect port 80 to 3000
sudo iptables -t nat -A PREROUTING -p tcp -port 80 -j REDIRECT --to-ports 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment