Skip to content

Instantly share code, notes, and snippets.

@philipheinser
Created May 1, 2014 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipheinser/748b6659ea07bdf9c60a to your computer and use it in GitHub Desktop.
Save philipheinser/748b6659ea07bdf9c60a to your computer and use it in GitHub Desktop.
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment