Skip to content

Instantly share code, notes, and snippets.

@afelicioni
Created April 22, 2016 11:11
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 afelicioni/805cf76a85e2dee10df9dd4c543d454a to your computer and use it in GitHub Desktop.
Save afelicioni/805cf76a85e2dee10df9dd4c543d454a to your computer and use it in GitHub Desktop.
iptables port redirect
iptables -t nat -A PREROUTING -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