Skip to content

Instantly share code, notes, and snippets.

@krishnasrinivas
Created May 10, 2016 19:39
Show Gist options
  • Save krishnasrinivas/37b17632e57f6c26d6c122b7f4f4ec1f to your computer and use it in GitHub Desktop.
Save krishnasrinivas/37b17632e57f6c26d6c122b7f4f4ec1f to your computer and use it in GitHub Desktop.
iptables -t nat -I PREROUTING --src 0/0 --dst 192.168.1.100 -p tcp --dport 80 -j REDIRECT --to-ports 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment